mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 05:05:51 +00:00
Fix overlap of source and destination buffers in snprintf call
This commit is contained in:
parent
f4772f07f3
commit
ebfb7652b0
@ -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);
|
||||
snprintf(buf, sizeof(buf), "%s.last", buf);
|
||||
strlcat(buf, ".last", sizeof(buf));
|
||||
|
||||
if (!content_rename_state(path, buf))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user