Merge pull request #1674 from Cacodemon345/patch-8

Fix monitor argument count
This commit is contained in:
Miran Grča
2021-09-07 22:02:45 +02:00
committed by GitHub

View File

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