From a09c2bdfc087bb79c318884f710224a197cb7e2c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 4 Feb 2022 02:17:44 +0100 Subject: [PATCH] Fix segfault when client is using python scripts on armhf --- client/src/cmdscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdscript.c b/client/src/cmdscript.c index 3206d281d..96d1f3637 100644 --- a/client/src/cmdscript.c +++ b/client/src/cmdscript.c @@ -417,7 +417,7 @@ static int CmdScriptRun(const char *Cmd) { //int argc, char ** argv char *argv[128]; int argc = split(arguments, argv); - wchar_t *py_args[argc]; + wchar_t *py_args[argc + 1]; py_args[0] = Py_DecodeLocale(filename, NULL); for (int i = 0; i < argc; i++) { py_args[i + 1] = Py_DecodeLocale(argv[i], NULL);