diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-13 22:20:13 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-13 22:20:13 (GMT) |
commit | 019fcbc2e8083d02b3b2ddb4ae40a861027bdbac (patch) | |
tree | fba56152a6b170f2b25887871576fb2378e87f99 /PC | |
parent | 2f2f57916c5930c4123d9b8e5f1cfe3f6a07549d (diff) | |
download | cpython-019fcbc2e8083d02b3b2ddb4ae40a861027bdbac.zip cpython-019fcbc2e8083d02b3b2ddb4ae40a861027bdbac.tar.gz cpython-019fcbc2e8083d02b3b2ddb4ae40a861027bdbac.tar.bz2 |
Fix potential crash in path manipulation on windows
Diffstat (limited to 'PC')
-rw-r--r-- | PC/getpathp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c index 729d2e4..e62b936 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 != DELIM && look >= module_search_path) + while (look >= module_search_path && *look != DELIM) look--; nchars = lookEnd-look; strncpy(lookBuf, look+1, nchars); |