Behavior of strlcpy() if src and dst overlap is undefined (#16423)

Fixes #16397
This commit is contained in:
Eric Warmenhoven 2024-04-08 18:38:09 -04:00 committed by GitHub
parent ed7b5e7809
commit 77f221436b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8002,7 +8002,7 @@ void runloop_path_set_redirect(settings_t *settings,
if (sort_savefiles_by_content_enable)
fill_pathname_join_special(
new_savefile_dir,
new_savefile_dir,
intermediate_savefile_dir,
content_dir_name,
sizeof(new_savefile_dir));
@ -8035,7 +8035,7 @@ void runloop_path_set_redirect(settings_t *settings,
if (sort_savestates_by_content_enable)
fill_pathname_join_special(
new_savestate_dir,
new_savestate_dir,
intermediate_savestate_dir,
content_dir_name,
sizeof(new_savestate_dir));