(svn r12943) -Fix: reading/modifying invalid data under some circumstances.

This commit is contained in:
rubidium 2008-05-04 21:47:36 +00:00
parent 762315c47c
commit 0b8b5d1f3b
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ FILE *FioFOpenFileSp(const char *filename, const char *mode, Searchpath sp, Subd
f = fopen(buf, mode);
#if !defined(WIN32)
if (f == NULL) {
strtolower(buf + strlen(_searchpaths[sp]) - 1);
strtolower(buf + ((subdir == NO_DIRECTORY) ? 0 : strlen(_searchpaths[sp]) - 1));
f = fopen(buf, mode);
}
#endif