Re: FC3: gnome-libs API broken with 1.4.1.2.90-32

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

 



On Tue, 29 Mar 2005 04:02:46 -0500, John Gotts wrote:

> We've had the same code in our software since 2000:
> 
> 	GnomeFileEntry *fe;
> 	gchar buf[1024];
> 
> --->	sprintf(buf, "%s", gnome_file_entry_get_full_path(fe, TRUE));
> 
> [Edited for brevity.]
> 
> The seg fault with Fedora Core 3:
> 
> #0  0x007e0490 in strcpy () from /lib/tls/libc.so.6
> (gdb) bt
> #0  0x007e0490 in strcpy () from /lib/tls/libc.so.6
> #1  <the line indicated with the arrow>

What value did it return that made strcpy crash?

gnome_file_entry_get_full_path may return NULL, too, so your code (whether
edited for brevity or not) should do some error checking at least.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux