TINSEL: Safer string manipulation

This commit is contained in:
Eugene Sandulenko 2016-05-11 12:32:18 +02:00
parent 775b615fdd
commit a57aa55999
5 changed files with 9 additions and 9 deletions

View file

@ -563,7 +563,7 @@ static void DoSave() {
while (1) {
Common::String fname = _vm->getSavegameFilename(ano);
strcpy(tmpName, fname.c_str());
Common::strlcpy(tmpName, fname.c_str(), FNAMELEN);
for (i = 0; i < g_numSfiles; i++)
if (!strcmp(g_savedFiles[i].name, tmpName))