author | rubidium |
Sun, 04 May 2008 21:47:36 +0000 | |
changeset 10401 | 9036e551960f |
parent 10400 | fe5ae75ca8ac |
child 10402 | b168fbb99f7c |
src/fileio.cpp | file | annotate | diff | comparison | revisions |
--- a/src/fileio.cpp Sun May 04 21:36:37 2008 +0000 +++ b/src/fileio.cpp Sun May 04 21:47:36 2008 +0000 @@ -315,7 +315,7 @@ 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