summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-04-16 06:19:32 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-04-16 06:19:32 +0000
commitcbce43e899b872dcc14169fdb04f355bdbfadef1 (patch)
tree636e47dc8f14c82e6d019996bdfda5f1790880e3 /PC
parentde42c0d53a9b75a9124b0cd590e620b4496e229b (diff)
downloadcpython-cbce43e899b872dcc14169fdb04f355bdbfadef1.tar.gz
Revert 54815 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
Diffstat (limited to 'PC')
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index e62b936f2d..729d2e4736 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -650,7 +650,7 @@ calculate_path(void)
start of the path in question - even if this
is one character before the start of the buffer
*/
- while (look >= module_search_path && *look != DELIM)
+ while (*look != DELIM && look >= module_search_path)
look--;
nchars = lookEnd-look;
strncpy(lookBuf, look+1, nchars);