mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
Fix py_args[] population
This commit is contained in:
parent
912d9be2d1
commit
997e5aac3e
1 changed files with 2 additions and 3 deletions
|
@ -431,9 +431,8 @@ static int CmdScriptRun(const char *Cmd) {
|
||||||
PyConfig_Clear(&py_conf);
|
PyConfig_Clear(&py_conf);
|
||||||
#else
|
#else
|
||||||
wchar_t *py_args[argc + 1];
|
wchar_t *py_args[argc + 1];
|
||||||
py_args[0] = Py_DecodeLocale(filename, NULL);
|
for (int i = 0; i <= argc; i++) {
|
||||||
for (int i = 0; i < argc; i++) {
|
py_args[i] = Py_DecodeLocale(argv[i], NULL);
|
||||||
py_args[i + 1] = Py_DecodeLocale(argv[i], NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PySys_SetArgv(argc + 1, py_args);
|
PySys_SetArgv(argc + 1, py_args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue