mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 11:46:45 +02:00
off by 1 error
This commit is contained in:
@ -335,8 +335,7 @@ void cmd_nick(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA
|
||||
return;
|
||||
}
|
||||
|
||||
if (len >= TOXIC_MAX_NAME_LENGTH)
|
||||
len = TOXIC_MAX_NAME_LENGTH;
|
||||
len = MIN(len, TOXIC_MAX_NAME_LENGTH-1);
|
||||
|
||||
nick[len] = L'\0';
|
||||
|
||||
|
Reference in New Issue
Block a user