From b1a2af23e521f1b21a1013c6894987f410700496 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Wed, 7 Aug 2013 18:12:59 -0400 Subject: Modified clients to properly work with the changes --- testing/toxic/friendlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/toxic/friendlist.c') diff --git a/testing/toxic/friendlist.c b/testing/toxic/friendlist.c index f03914e6..159217b1 100644 --- a/testing/toxic/friendlist.c +++ b/testing/toxic/friendlist.c @@ -20,7 +20,7 @@ extern int active_window; typedef struct { uint8_t name[MAX_NAME_LENGTH]; - uint8_t status[MAX_USERSTATUS_LENGTH]; + uint8_t status[MAX_STATUSMESSAGE_LENGTH]; int num; int chatwin; } friend_t; @@ -74,7 +74,7 @@ void friendlist_onNickChange(ToxWindow *self, int num, uint8_t *str, uint16_t le void friendlist_onStatusChange(ToxWindow *self, int num, uint8_t *str, uint16_t len) { - if (len >= MAX_USERSTATUS_LENGTH || num >= num_friends) + if (len >= MAX_STATUSMESSAGE_LENGTH || num >= num_friends) return; memcpy((char*) &friends[num].status, (char*) str, len); -- cgit v1.2.3