[Python-3000-checkins] r66948 - python/branches/py3k/Python/sysmodule.c

barry.warsaw python-3000-checkins at python.org
Fri Oct 17 03:15:29 CEST 2008


Author: barry.warsaw
Date: Fri Oct 17 03:15:29 2008
New Revision: 66948

Log:
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.


Modified:
   python/branches/py3k/Python/sysmodule.c

Modified: python/branches/py3k/Python/sysmodule.c
==============================================================================
--- python/branches/py3k/Python/sysmodule.c	(original)
+++ python/branches/py3k/Python/sysmodule.c	Fri Oct 17 03:15:29 2008
@@ -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);


More information about the Python-3000-checkins mailing list