mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 23:25:40 -07:00
Fix segfault when client is using python scripts on armhf
This commit is contained in:
parent
bdc5941ee0
commit
a09c2bdfc0
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ static int CmdScriptRun(const char *Cmd) {
|
||||||
//int argc, char ** argv
|
//int argc, char ** argv
|
||||||
char *argv[128];
|
char *argv[128];
|
||||||
int argc = split(arguments, argv);
|
int argc = split(arguments, argv);
|
||||||
wchar_t *py_args[argc];
|
wchar_t *py_args[argc + 1];
|
||||||
py_args[0] = Py_DecodeLocale(filename, NULL);
|
py_args[0] = Py_DecodeLocale(filename, NULL);
|
||||||
for (int i = 0; i < argc; i++) {
|
for (int i = 0; i < argc; i++) {
|
||||||
py_args[i + 1] = Py_DecodeLocale(argv[i], NULL);
|
py_args[i + 1] = Py_DecodeLocale(argv[i], NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue