diff options
author | Andrew Kurushin | 2005-06-24 18:17:01 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-06-24 18:17:01 +0000 |
commit | 96f9571afce6ccc6827bf17893e573a27e309555 (patch) | |
tree | bbaeb8a4655659bc81be35c92bc005f507e1c2b0 /scumm | |
parent | 0c4f349a1b41a87881a5e036bf5fd5797223bf48 (diff) | |
download | scummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.tar.gz scummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.tar.bz2 scummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.zip |
fix VS2005 _strnicmp error issue
svn-id: r18459
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scumm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 9ba88fadc6..b6ee17837a 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -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)) { |