aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2017-08-06 16:38:03 +0200
committerTorbjörn Andersson2017-08-06 16:38:03 +0200
commita70767503e6a27d4f42a97033971ca4d760df32c (patch)
treeba6106a6a5cd4df7834e7a6e95ce9a397e36317b
parent0bde79b2b84ea95bb1f4b79600bcd9a14b03079c (diff)
downloadscummvm-rg350-a70767503e6a27d4f42a97033971ca4d760df32c.tar.gz
scummvm-rg350-a70767503e6a27d4f42a97033971ca4d760df32c.tar.bz2
scummvm-rg350-a70767503e6a27d4f42a97033971ca4d760df32c.zip
SWORD1: Silence GCC warning about potential overflow
Probably doesn't ever happen, but now 'fileName' is as large as it needs to be if 'label' is as long as it can be.
-rw-r--r--engines/sword1/resman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/resman.cpp b/engines/sword1/resman.cpp
index 2f8b37d21c..f3b0f83e05 100644
--- a/engines/sword1/resman.cpp
+++ b/engines/sword1/resman.cpp
@@ -309,7 +309,7 @@ Common::File *ResMan::resFile(uint32 id) {
_openCluEnd = cluster;
}
cluster->file = new Common::File();
- char fileName[15];
+ char fileName[36];
// Supposes that big endian means mac cluster file and little endian means PC cluster file.
// This works, but we may want to separate the file name from the endianess or try .CLM extension if opening.clu file fail.
if (_isBigEndian)