Jonathan Hayward wrote: > I've been developing an application, and now it crashes shortly after > starting; it segfaults (secondary damage?) either on the first attempt > to strncpy() from a text input, or gtk_image_new_from_pixbuf(). Both > of these were working reliably, and I haven't touched that area of > code (but double checked just in case). In: void user_entered_string(GtkWidget *window) { user_has_clicked = 1; user_clicked_value = 1; strncpy(entry_text, gtk_entry_get_text(GTK_ENTRY(entry)), ENTRY_TEXT_LENGTH); entry_text[ENTRY_TEXT_LENGTH - 1] = '\0'; gtk_widget_destroy(window); } from gtk.c, there is an uninitialized usage of the entry_text pointer. This pointer is never set. There is a possible harmful usage of calloc in gtk_specific_init, but it didn't run at all here.
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list