[vlc-devel] [PATCH 2/2] cli: fix SIGSEGV when command has an argument
KO Myung-Hun
komh78 at gmail.com
Sun Feb 28 15:12:00 UTC 2021
---
modules/control/cli/cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index b134e471bf..d24d7f7e4c 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -325,7 +325,7 @@ error: wordfree(&we);
arg += strspn(arg, " ");
if (*arg)
- count++;
+ args[count++] = arg;
}
#endif
--
2.30.0
More information about the vlc-devel
mailing list