1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 02:56:35 +01:00

Modified clients to properly work with the changes

This commit is contained in:
Maxim Biro
2013-08-07 18:12:59 -04:00
parent 088e7d3e17
commit 174604a448
4 changed files with 13 additions and 17 deletions

View File

@@ -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);