mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 05:01:36 +00:00
python 3.x fix
This commit is contained in:
@@ -71,7 +71,7 @@ void init_pyargv() {
|
||||
}
|
||||
|
||||
#ifdef PYTHREE
|
||||
wchar_t *pname = uwsgi_calloc(strlen(argv0)+1);
|
||||
wchar_t *pname = uwsgi_calloc(sizeof(wchar_t) * (strlen(argv0)+1));
|
||||
mbstowcs(pname, argv0, strlen(argv0)+1);
|
||||
#else
|
||||
char *pname = argv0;
|
||||
|
||||
Reference in New Issue
Block a user