CRUISE: Add a safeguard to avoid a buffer overflow

This commit is contained in:
Strangerke
2014-05-30 21:33:38 +02:00
parent 7f2f4193e6
commit 00a0a412bb
+1 -1
View File
@@ -240,7 +240,7 @@ int16 findFileInDisks(const char *name) {
int disk;
int fileIdx;
strcpy(fileName, name);
Common::strlcpy(fileName, name, sizeof(fileName));
strToUpper(fileName);
if (!volumeDataLoaded) {