mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Revert "Fix overlap of source and destination buffers in snprintf call"
This commit is contained in:
parent
d0697236f0
commit
a52e55e909
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue