mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 20:13:04 +01:00
off by one error
This commit is contained in:
parent
b7375fb2a1
commit
170abde373
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user