commit 1ee33dec234f2c5752583484831a6ae70782b5b3
parent 901be06b01f63b14875680c405d59ec613d22c65
Author: sin <sin@2f30.org>
Date: Mon, 15 Sep 2014 16:04:34 +0100
Fix one more warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");