aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kurushin2005-06-24 18:17:01 +0000
committerAndrew Kurushin2005-06-24 18:17:01 +0000
commit96f9571afce6ccc6827bf17893e573a27e309555 (patch)
treebbaeb8a4655659bc81be35c92bc005f507e1c2b0
parent0c4f349a1b41a87881a5e036bf5fd5797223bf48 (diff)
downloadscummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.tar.gz
scummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.tar.bz2
scummvm-rg350-96f9571afce6ccc6827bf17893e573a27e309555.zip
fix VS2005 _strnicmp error issue
svn-id: r18459
-rw-r--r--scumm/scumm.cpp2
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)) {