aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2007-05-20 17:17:48 +0000
committerNicola Mettifogo2007-05-20 17:17:48 +0000
commitb7b3030383a0c5f107dd61848e0a474cd6c1c131 (patch)
tree5a0b49acbbbb33c4a5a6f6599899e7b3972f713e
parent094bf2c518057e7f4e1dabad08fcb65606ebacd8 (diff)
downloadscummvm-rg350-b7b3030383a0c5f107dd61848e0a474cd6c1c131.tar.gz
scummvm-rg350-b7b3030383a0c5f107dd61848e0a474cd6c1c131.tar.bz2
scummvm-rg350-b7b3030383a0c5f107dd61848e0a474cd6c1c131.zip
Fixed bug. snprintf counts the termination character on Linux, but not on Windows, so had to resort to another solution.
svn-id: r26893
-rw-r--r--engines/parallaction/disk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp
index dab34460f1..35b97b64c7 100644
--- a/engines/parallaction/disk.cpp
+++ b/engines/parallaction/disk.cpp
@@ -285,7 +285,7 @@ StaticCnv* DosDisk::loadHead(const char* name) {
name += 4;
}
- snprintf(path, 8, "%shead", name);
+ sprintf(path, "%shead", name);
path[8] = '\0';
return loadExternalStaticCnv(path);