diff options
author | hark <hark@puscii.nl> | 2014-01-30 00:55:05 +0000 |
---|---|---|
committer | hark <hark@puscii.nl> | 2014-01-30 00:55:05 +0000 |
commit | deaaa66c8addc4eab4d2abb3d0547ad817167d98 (patch) | |
tree | 0e195bd714b9de77eb96916e223a30f93935217e | |
parent | 7522ad0d88fef575807036fec1277ac7f4c5405f (diff) | |
download | gnunet-gtk-deaaa66c8addc4eab4d2abb3d0547ad817167d98.tar.gz gnunet-gtk-deaaa66c8addc4eab4d2abb3d0547ad817167d98.zip |
fixed something in previous commit
-rw-r--r-- | src/conversation/gnunet-conversation-gtk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.c b/src/conversation/gnunet-conversation-gtk.c index 66452e77..ad950a5d 100644 --- a/src/conversation/gnunet-conversation-gtk.c +++ b/src/conversation/gnunet-conversation-gtk.c | |||
@@ -1294,18 +1294,21 @@ quick_message (gchar * message, const char *caller_id) | |||
1294 | void | 1294 | void |
1295 | GNUNET_CONVERSATION_GTK_on_call_clicked () | 1295 | GNUNET_CONVERSATION_GTK_on_call_clicked () |
1296 | { | 1296 | { |
1297 | char *to_addr = malloc(MAX_TO_ADDR*sizeof(char)); | 1297 | // char *to_addr = malloc((MAX_TO_ADDR+1)*sizeof(char)); |
1298 | char *to_addr; | ||
1298 | GtkEntry *address_entry; | 1299 | GtkEntry *address_entry; |
1299 | 1300 | ||
1300 | address_entry = GTK_ENTRY (get_object ("GNUNET_GTK_conversation_address")); | 1301 | address_entry = GTK_ENTRY (get_object ("GNUNET_GTK_conversation_address")); |
1301 | // to_addr = gtk_entry_get_text (address_entry); | 1302 | to_addr = gtk_entry_get_text (address_entry); |
1302 | 1303 | ||
1303 | strcpy(to_addr, gtk_entry_get_text (address_entry)); | 1304 | // strncpy(to_addr, gtk_entry_get_text (address_entry), MAX_TO_ADDR); |
1305 | // to_addr[strlen(to_addr)+1] = '\0'; | ||
1304 | // FPRINTF (stderr, _("calling: %s \n"), to_addr ); | 1306 | // FPRINTF (stderr, _("calling: %s \n"), to_addr ); |
1305 | 1307 | ||
1306 | do_call (to_addr); | 1308 | do_call (to_addr); |
1307 | disable_button ("GNUNET_GTK_conversation_accept_button"); | 1309 | disable_button ("GNUNET_GTK_conversation_accept_button"); |
1308 | do_status (""); | 1310 | do_status (""); |
1311 | // free(to_addr); | ||
1309 | } | 1312 | } |
1310 | 1313 | ||
1311 | /** | 1314 | /** |