Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.
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 @@
 	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);