mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CRUISE: Add a safeguard to avoid a buffer overflow
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user