CINE: Null terminate string. CID 1003887

This commit is contained in:
Eugene Sandulenko 2013-04-26 08:01:07 +03:00
parent eb3d556e15
commit f70509e20b

View File

@ -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);