summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
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);