diff options
author | Barry Warsaw <barry@python.org> | 2008-10-17 01:15:29 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2008-10-17 01:15:29 (GMT) |
commit | 460ce2abf7dbb93ba1583c27176b9f0c8ea44232 (patch) | |
tree | 509bf7c13eaab8595331eb519611df222db53c0a /Python | |
parent | 9b6df6afe0b647ab336ab5cd8a03c44b55d6544b (diff) | |
download | cpython-460ce2abf7dbb93ba1583c27176b9f0c8ea44232.zip cpython-460ce2abf7dbb93ba1583c27176b9f0c8ea44232.tar.gz cpython-460ce2abf7dbb93ba1583c27176b9f0c8ea44232.tar.bz2 |
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 89f50b5..10a8761 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); |