From e082658d9dd35eb8d640fb0542494cc166534cdc Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 8 Sep 2021 01:44:30 +0600 Subject: [PATCH] Fix monitor argument count --- src/unix/unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/unix.c b/src/unix/unix.c index 16cedb1ae..d8df7f655 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -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;