mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 02:58:04 +00:00
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:
commit
6c045ab24e
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user