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

couple fixes

This commit is contained in:
Jfreegman
2013-11-28 18:56:56 -05:00
parent 7e0bc7768b
commit 2057e7bc4f
4 changed files with 6 additions and 3 deletions

View File

@ -239,7 +239,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;
len = TOXIC_MAX_NAME_LENGTH - 1;
}
tox_setname(m, nick, len+1);