summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatox.c b/ratatox.c
index d990420..eec57c5 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -590,7 +590,7 @@ dofriend(char *cmd, size_t sz)
}
str2id(args[1], id);
- r = tox_add_friend(tox, id, msgstr, strlen(msgstr));
+ r = tox_add_friend(tox, id, msgstr, strlen((const char *)msgstr));
switch (r) {
case TOX_FAERR_TOOLONG:
fprintf(stderr, "Message is too long\n");