1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-26 20:47:45 +02:00

off by one error

This commit is contained in:
Jfreegman 2013-09-13 04:01:10 -04:00
parent b7375fb2a1
commit 170abde373

View File

@ -388,7 +388,8 @@ void cmd_nick(ToxWindow *self, Tox *m, int argc, char **argv)
if (nick[0] == '\"') {
++nick;
nick[--len-1] = L'\0';
len -= 2;
nick[len] = L'\0';
}
if (len > TOXIC_MAX_NAME_LENGTH) {