mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SAGA2: Prevent potential buffer overflow. CID 1457976
This commit is contained in:
parent
e4e572a798
commit
410192d10d
@ -43,7 +43,7 @@ static bool nameCheck(char name[], const char ext[]) {
|
||||
void Saga2Engine::startVideo(const char *fileName, int x, int y) {
|
||||
char file[260];
|
||||
strcpy(file, "video/");
|
||||
strncat(file, fileName, 260);
|
||||
Common::strlcat(file, fileName, 260);
|
||||
nameCheck(file, VIDEO_EXT);
|
||||
|
||||
if (!_smkDecoder)
|
||||
|
Loading…
Reference in New Issue
Block a user