Fix monitor argument count

This commit is contained in:
Cacodemon345
2021-09-08 01:44:30 +06:00
committed by GitHub
parent 81051f33e0
commit e082658d9d

View File

@@ -759,6 +759,7 @@ void monitor_thread(void* param)
xargv[cmdargc++] = local_strsep(&linecpy, " "); xargv[cmdargc++] = local_strsep(&linecpy, " ");
if (xargv[cmdargc - 1] == NULL || cmdargc >= 512) break; if (xargv[cmdargc - 1] == NULL || cmdargc >= 512) break;
} }
cmdargc--;
if (strncasecmp(xargv[0], "exit", 4) == 0) if (strncasecmp(xargv[0], "exit", 4) == 0)
{ {
exit_event = 1; exit_event = 1;