commit | 019fcbc2e8083d02b3b2ddb4ae40a861027bdbac | [log] [tgz] |
---|---|---|
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | Fri Apr 13 22:20:13 2007 +0000 |
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | Fri Apr 13 22:20:13 2007 +0000 |
tree | fba56152a6b170f2b25887871576fb2378e87f99 | |
parent | 2f2f57916c5930c4123d9b8e5f1cfe3f6a07549d [diff] |
Fix potential crash in path manipulation on windows
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 @@ 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);