mirror of
https://github.com/python/cpython.git
synced 2025-09-01 22:47:59 +00:00
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.
This commit is contained in:
parent
9b6df6afe0
commit
460ce2abf7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue