diff options
author | Barry Warsaw <barry@python.org> | 2008-10-17 01:15:29 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2008-10-17 01:15:29 +0000 |
commit | 909f3506faae99e2ef8ffede553d69976f61284e (patch) | |
tree | 83a1b724beb1249be61f393fb3bef39f13ec73a1 /Python | |
parent | cacf97e421a5786d1ed6f576276cd2b60056185a (diff) | |
download | cpython-909f3506faae99e2ef8ffede553d69976f61284e.tar.gz |
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 89f50b536e..10a87611c0 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1387,7 +1387,7 @@ makepathobject(const wchar_t *path, wchar_t delim) 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); |