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
commit 33365a9c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;