summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ratox.c b/ratox.c
index 7df403b..fc65b27 100644
--- a/ratox.c
+++ b/ratox.c
@@ -282,10 +282,10 @@ static void
cbconnstatus(Tox *m, int32_t frnum, uint8_t status, void *udata)
{
struct friend *f;
- uint8_t name[TOX_MAX_NAME_LENGTH + 1];
+ char name[TOX_MAX_NAME_LENGTH + 1];
int r;
- r = tox_get_name(tox, frnum, name);
+ r = tox_get_name(tox, frnum, (uint8_t *)name);
if (r < 0)
eprintf("Failed to get name for friend number %ld\n",
(long)frnum);