Re: gconf_quote_percents(const gchar* src)

Philip Van Hoof <[email protected]>
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <[email protected]>
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

_______________________________________________
gconf-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gconf-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.