Skip to content

Commit e6887be

Browse files
Merge pull request #17710 from warmenhoven/warmenhoven/pr/apple-strlcpy
apple: fix strlcpy where src and dst are the same
2 parents f7b4af8 + 86fddd5 commit e6887be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tasks/task_content.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,8 @@ bool task_push_load_new_core(
22812281
path_set(RARCH_PATH_CORE, core_path);
22822282

22832283
/* Remember core path for reloading */
2284-
path_set(RARCH_PATH_CORE_LAST, core_path);
2284+
if (!string_is_equal(core_path, path_get(RARCH_PATH_CORE_LAST)))
2285+
path_set(RARCH_PATH_CORE_LAST, core_path);
22852286

22862287
/* Load core */
22872288
command_event(CMD_EVENT_LOAD_CORE, NULL);

0 commit comments

Comments
 (0)