mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +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 disk;
|
||||||
int fileIdx;
|
int fileIdx;
|
||||||
|
|
||||||
strcpy(fileName, name);
|
Common::strlcpy(fileName, name, sizeof(fileName));
|
||||||
strToUpper(fileName);
|
strToUpper(fileName);
|
||||||
|
|
||||||
if (!volumeDataLoaded) {
|
if (!volumeDataLoaded) {
|
||||||
|
Loading…
Reference in New Issue
Block a user