Re: GConf and bonobo-conf are now obsolete



On 30 Jul 2001, Seth Nickell wrote:

[snip]
> char foobar[512];
...
> sprintf (&foobar, "%s%s%s%s\n", g_get_home_dir(), 	          ".foo/",
> "bar/foo", "bar");

won't this result in a segfault? (or overwriting random memory).  &foobar
is a (char **) -- you should just be passing in foobar.  With code like
this, the user's preferences will get lost, which we don't want.

James.


_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]