mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 19:26:44 +02:00
fix potential segfault
This commit is contained in:
@ -232,7 +232,7 @@ void cmd_nick(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MA
|
||||
nick[len] = L'\0';
|
||||
}
|
||||
|
||||
if(!len) {
|
||||
if (!len) {
|
||||
wprintw(window, "Invalid name.\n");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user