From 5329d7c4589774fd8f712f19d98a049053b67f55 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 7 Oct 2014 01:48:18 +0100 Subject: Send the actual message when initiating the friend request --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratox.c b/ratox.c index 9ad1566..74a2a41 100644 --- a/ratox.c +++ b/ratox.c @@ -1468,7 +1468,7 @@ out: } str2id(buf, id); - r = tox_add_friend(tox, id, (uint8_t *)buf, strlen(buf)); + r = tox_add_friend(tox, id, (uint8_t *)msg, strlen(msg)); ftruncate(gslots[REQUEST].fd[ERR], 0); lseek(gslots[REQUEST].fd[ERR], 0, SEEK_SET); -- cgit v1.2.3