From 7e84ba460688f54a4ccb33b6c3395e090a36cc89 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Mon, 9 Sep 2013 07:14:47 -0400 Subject: [PATCH] wrong type --- toxcore/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index eb40cf10..b712d142 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -351,7 +351,7 @@ static int m_sendname(Messenger *m, int friendnumber, uint8_t *name, uint16_t le * return 0 if success. * return -1 if failure. */ -static int setfriendname(Messenger *m, int friendnumber, uint8_t *name, uint8_t len) +static int setfriendname(Messenger *m, int friendnumber, uint8_t *name, uint16_t len) { if (friend_not_valid(m, friendnumber)) return -1;