Merge pull request #3127 from libretro/revert-3126-fix-snprintf-overlap

Revert "Fix overlap of source and destination buffers in snprintf call"
This commit is contained in:
Twinaphex 2016-06-18 23:14:28 +02:00 committed by GitHub
commit 6c045ab24e

View File

@ -1586,7 +1586,7 @@ static void command_event_save_state(const char *path,
strlcpy(buf, path, sizeof(buf));
snprintf(buf, sizeof(buf), "%s", path);
path_remove_extension(buf);
strlcat(buf, ".last", sizeof(buf));
snprintf(buf, sizeof(buf), "%s.last", buf);
if (!content_rename_state(path, buf))
{