From 93c3f6321138be7b2eaa9eb9920df7cd8425ca73 Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 2 Oct 2014 21:06:45 +0100 Subject: Actually fill the status message buffer when creating friends --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratox.c b/ratox.c index 40aa8cc..c2a6d62 100644 --- a/ratox.c +++ b/ratox.c @@ -1203,7 +1203,7 @@ friendcreate(int32_t frnum) dprintf(f->fd[FONLINE], "%d\n", tox_get_friend_connection_status(tox, frnum)); - r = tox_get_status_message_size(tox, frnum); + r = tox_get_status_message(tox, frnum, status, sizeof(status) - 1); if (r > sizeof(status) - 1) r = sizeof(status) - 1; status[r] = '\0'; -- cgit v1.2.3