mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 11:36:36 +02:00
fix bug
This commit is contained in:
@ -243,7 +243,7 @@ void cmd_nick(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA
|
||||
|
||||
if (len > TOXIC_MAX_NAME_LENGTH) {
|
||||
nick[TOXIC_MAX_NAME_LENGTH] = L'\0';
|
||||
len = TOXIC_MAX_NAME_LENGTH - 1;
|
||||
len = TOXIC_MAX_NAME_LENGTH;
|
||||
}
|
||||
|
||||
tox_set_name(m, nick, len+1);
|
||||
|
Reference in New Issue
Block a user