Skip to content

Commit

Permalink
CINE: Null terminate string. CID 1003887
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Apr 26, 2013
1 parent eb3d556 commit f70509e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/cine/detection.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit f70509e

Please sign in to comment.