diff options
author | Torbjörn Andersson | 2017-08-06 16:38:03 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2017-08-06 16:38:03 +0200 |
commit | a70767503e6a27d4f42a97033971ca4d760df32c (patch) | |
tree | ba6106a6a5cd4df7834e7a6e95ce9a397e36317b | |
parent | 0bde79b2b84ea95bb1f4b79600bcd9a14b03079c (diff) | |
download | scummvm-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.cpp | 2 |
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) |