1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-13 00:53:01 +01:00
This commit is contained in:
Jfreegman 2013-12-04 00:44:37 -05:00
parent db10c66922
commit 2fde13530b

View File

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