mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 13:16:18 +00:00
CRUISE: Add a safeguard to avoid a buffer overflow
This commit is contained in:
parent
7f2f4193e6
commit
00a0a412bb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user