mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -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);
|
||||
#else
|
||||
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);
|
||||
for (int i = 0; i <= argc; i++) {
|
||||
py_args[i] = Py_DecodeLocale(argv[i], NULL);
|
||||
}
|
||||
|
||||
PySys_SetArgv(argc + 1, py_args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue