Re: Problems with g_signal_connect_swapped()



Hi,

You are using strcpy without allocating any memory for str which makes
your program to segfault (strcpy needs its first argument to be at least
as large as the second one). 

 gchar *str, *res = '\0';
...
 strcpy(str,gtk_entry_get_text(GTK_ENTRY(campo)));

Mathias

-- 
'Logic will get you from A to B. Imagination will take you everywhere.'
- Albert Einstein




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