[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GConf and bonobo-conf are now obsolete
- From: Ian McKellar <yakk-gnome-hackers yakk net au>
- To: James Henstridge <james daa com au>
- Cc: Seth Nickell <snickell stanford edu>, gnome-hackers gnome org
- Subject: Re: GConf and bonobo-conf are now obsolete
- Date: Tue, 31 Jul 2001 10:59:05 +0800
On Tue, Jul 31, 2001 at 10:54:34AM +0800, James Henstridge wrote:
> 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.
The example code is all C# - there can be no segfaults!
Ian
--
programming is my one outlet
it beats the sickness in my chest
i have these beats inside my head
back to the office block instead
-- bis
_______________________________________________
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]