tFix obtaining of friend status while creating friend. - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit c9bdaf315f88069b4fd7349d5ff335c5b53dfdae
 (DIR) parent 332c06103b614e8c3eb9b3a3e684c08b70a9e19f
 (HTM) Author: pranomostro <pranomestro@gmail.com>
       Date:   Sun,  5 Mar 2017 01:40:32 +0100
       
       Fix obtaining of friend status while creating friend.
       
       Diffstat:
         M ratox.c                             |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -1561,11 +1561,12 @@ friendcreate(uint32_t frnum)
                        tox_friend_get_connection_status(tox, frnum, NULL));
        
                /* Dump status */
       -        i = tox_friend_get_status_message(tox, frnum, status, NULL);
       +        i = tox_friend_get_status_message_size(tox, frnum, NULL);
                if (i == SIZE_MAX) {
                        weprintf(": %s : Status : Failed to get\n", f->name);
                        i = 0;
                }
       +        tox_friend_get_status_message(tox, frnum, status, NULL);
                status[i] = '\0';
                ftruncate(f->fd[FSTATUS], 0);
                dprintf(f->fd[FSTATUS], "%s\n", status);