Re: gconf_quote_percents(const gchar* src)
- From: Philip Van Hoof <spamfrommailing freax org>
- To: gconf-list gnome org
- Cc: Havoc Pennington <hp redhat com>
- Subject: Re: gconf_quote_percents(const gchar* src)
- Date: Tue, 08 Mar 2005 09:57:04 +0100
On Tue, 2005-03-08 at 09:50 +0100, Philip Van Hoof wrote:
Note, after differencing with the latest in HEAD the function is now called gchar*
gconf_quote_string (const gchar* src) but it's ways of doing things are exactly
the same as before (it just adds one other quotation-type).
Oh wait, no .. it's many such functions duplicated but with different characters to quote.
Well, the oddity has spread like a virus then? :-)
Note that in any case it looks like a small memory-leak during the period the string
isn't freed. The functions, in this form, should loop the source-string and count the
characters to quote. Then allocate just enough memory and then copy-while-adding-
quotes the characters.
--
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org
gnome: pvanhoof at gnome dot org
work: philip dot vanhoof at cronos dot be
junk: philip dot vanhoof at gmail dot com
http://www.freax.be, http://www.freax.eu.org
|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]