On Sun, 27 Aug 2006, rupert wrote:

> the g_sprintf returns the number of characters, so i should use it like the
> normal sprintf,
> gchar *mapper_chk_cmd;
> g_sprintf(mapper_chk_cmd, "/dev/mapper/%s", data);
>
> but it doesnt seem to help, the segfault is there, too

Sorry, I meant g_strdup_printf().

> when i init it with gchar mount_chk_cmd[128]; i can use it like
> with sprintf, but i cant free the memory for these gchars.
>
> I got the warning with the g_sprintf, but i think it was because it returned
> int
>
> i removed the fclose and pclose, but the app also crashed after a while with
> the same
> symptoms.
>

The file descriptor thing has nothing to do with the segfaults.  They were 
a separate problem.

-Peter
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to