fixed python3 pyargv

This commit is contained in:
Unbit
2013-05-19 05:04:42 +02:00
parent 1abe9f2d12
commit 9113812b0d
+3 -2
View File
@@ -211,8 +211,9 @@ void init_pyargv() {
#endif
if (*ap != '\0') {
#ifdef PYTHREE
mbstowcs( wcargv + strlen(ap), ap, strlen(ap));
up.py_argv[up.argc] = wcargv + strlen(ap);
mbstowcs( wcargv, ap, strlen(ap));
up.py_argv[up.argc] = wcargv;
wcargv += strlen(ap) + 1;
#else
up.py_argv[up.argc] = ap;
#endif