fix VS2005 _strnicmp error issue

svn-id: r18459
This commit is contained in:
Andrew Kurushin 2005-06-24 18:17:01 +00:00
parent 0c4f349a1b
commit 96f9571afc

View File

@ -2829,7 +2829,7 @@ static int generateSubstResFileName_(const char *filename, char *buf, int bufsiz
num = filename[strlen(filename) - 2];
const char *ext = strrchr(filename, '.');
int len = ext - filename;
size_t len = (ext > 0) ? ext - filename : strlen(filename);
for (int i = index; i < ARRAYSIZE(substResFileNameTable); i++) {
if (!scumm_strnicmp(filename, substResFileNameTable[i].winName, len)) {