mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 22:56:34 +01: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