[Python-checkins] r54814 - python/trunk/PC/getpathp.c
kristjan.jonsson
python-checkins at python.org
Sat Apr 14 00:20:17 CEST 2007
Author: kristjan.jonsson
Date: Sat Apr 14 00:20:13 2007
New Revision: 54814
Modified:
python/trunk/PC/getpathp.c
Log:
Fix potential crash in path manipulation on windows
Modified: python/trunk/PC/getpathp.c
==============================================================================
--- python/trunk/PC/getpathp.c (original)
+++ python/trunk/PC/getpathp.c Sat Apr 14 00:20:13 2007
@@ -650,7 +650,7 @@
start of the path in question - even if this
is one character before the start of the buffer
*/
- while (*look != DELIM && look >= module_search_path)
+ while (look >= module_search_path && *look != DELIM)
look--;
nchars = lookEnd-look;
strncpy(lookBuf, look+1, nchars);
More information about the Python-checkins
mailing list