summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGDR! <gdr@go2.pl>2014-12-11 22:31:49 +0100
committerGDR! <gdr@go2.pl>2014-12-11 22:31:49 +0100
commit925a7c2bdf93c3a0209552285b77e2e585a799c4 (patch)
tree8a4cbf574a182288cf5f7cb3b9af9040d692c66d /main.c
parentf7f5170d00ee10affcacf569842207120a7ab16d (diff)
Fixed a warning and printing garbage
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6d4ea36..8cef6ce 100644
--- a/main.c
+++ b/main.c
@@ -643,6 +643,7 @@ void accept_friend_request(Tox *tox, const uint8_t *public_key, const uint8_t *d
643 643
644 friendnumber = tox_add_friend_norequest(tox, public_key); 644 friendnumber = tox_add_friend_norequest(tox, public_key);
645 645
646 memset(tox_printable_id, '\0', sizeof(tox_printable_id));
646 id_to_string(tox_printable_id, public_key); 647 id_to_string(tox_printable_id, public_key);
647 printf("Accepted friend request from %s as %d\n", tox_printable_id, friendnumber); 648 printf("Accepted friend request from %s as %d\n", tox_printable_id, friendnumber);
648 649