1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 11:56:44 +02:00

small fix

This commit is contained in:
Jfreegman
2014-03-30 01:22:40 -04:00
parent 52d6e8431f
commit 1420618eb0
2 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,7 @@ void cmd_nick(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA
return;
}
if (len > TOXIC_MAX_NAME_LENGTH) {
if (len >= TOXIC_MAX_NAME_LENGTH) {
len = TOXIC_MAX_NAME_LENGTH;
nick[len-1] = L'\0';
}