Revert "Fix overlap of source and destination buffers in snprintf call"

This commit is contained in:
Twinaphex 2016-06-18 23:14:22 +02:00 committed by GitHub
parent d0697236f0
commit a52e55e909

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))
{