mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:43:26 +01:00
small fix
This commit is contained in:
parent
8c3e3ebe24
commit
bd69c8da18
@ -413,8 +413,8 @@ void friendlist_onFriendAdded(ToxWindow *self, Tox *m, int32_t num, bool sort)
|
|||||||
strcpy(Friends.list[i].name, UNKNOWN_NAME);
|
strcpy(Friends.list[i].name, UNKNOWN_NAME);
|
||||||
Friends.list[i].namelength = strlen(UNKNOWN_NAME);
|
Friends.list[i].namelength = strlen(UNKNOWN_NAME);
|
||||||
} else { /* Enforce toxic's maximum name length */
|
} else { /* Enforce toxic's maximum name length */
|
||||||
Friends.list[i].namelength = len;
|
|
||||||
snprintf(Friends.list[i].name, sizeof(Friends.list[i].name), "%s", tempname);
|
snprintf(Friends.list[i].name, sizeof(Friends.list[i].name), "%s", tempname);
|
||||||
|
Friends.list[i].namelength = strlen(Friends.list[i].name);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == Friends.max_idx)
|
if (i == Friends.max_idx)
|
||||||
|
Loading…
Reference in New Issue
Block a user