Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 49536:cbc3afc1e40a
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 17 Oct 2008 01:15:29 +0000 |
| parents | e822992cf6ce |
| children | 2c3a6c9dff62 |
line wrap: on
line diff
--- a/Python/sysmodule.c Thu Oct 16 23:56:29 2008 +0000 +++ b/Python/sysmodule.c Fri Oct 17 01:15:29 2008 +0000 @@ -1387,7 +1387,7 @@ for (i = 0; ; i++) { p = wcschr(path, delim); if (p == NULL) - p = wcschr(path, L'\0'); /* End of string */ + p = path + wcslen(path); /* End of string */ w = PyUnicode_FromWideChar(path, (Py_ssize_t)(p - path)); if (w == NULL) { Py_DECREF(v);
