summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 16:04:34 +0100
committersin <sin@2f30.org>2014-09-15 16:04:41 +0100
commit1ee33dec234f2c5752583484831a6ae70782b5b3 (patch)
tree26ed9f4537fb6500cd10d03dda0f53dc3c889ed6
parent901be06b01f63b14875680c405d59ec613d22c65 (diff)
Fix one more warning
-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");