mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
CINE: Null terminate string. CID 1003887
This commit is contained in:
parent
eb3d556e15
commit
f70509e20b
@ -184,7 +184,7 @@ void CineMetaEngine::removeSaveState(const char *target, int slot) const {
|
||||
// Set description for selected slot
|
||||
char slotName[20];
|
||||
slotName[0] = 0;
|
||||
strncpy(saveNames[slot], slotName, 20);
|
||||
Common::strlcpy(saveNames[slot], slotName, 20);
|
||||
|
||||
// Update savegame descriptions
|
||||
Common::String indexFile = Common::String::format("%s.dir", target);
|
||||
|
Loading…
Reference in New Issue
Block a user