fixed python3 pyargv

This commit is contained in:
Unbit
2013-05-19 04:55:52 +02:00
parent f177a65c1e
commit 900cba29a7
+3 -2
View File
@@ -301,8 +301,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