From 6e59a2cce1017c84ae349cba9bdbecd0674e716f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 Jan 2017 16:56:22 +0100 Subject: [PATCH] Copy buf inside entry first --- tasks/task_netplay_find_content.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/task_netplay_find_content.c b/tasks/task_netplay_find_content.c index 1e24061a4b..3a38294045 100644 --- a/tasks/task_netplay_find_content.c +++ b/tasks/task_netplay_find_content.c @@ -166,6 +166,8 @@ static void task_netplay_crc_scan_handler(retro_task_t *task) entry[0] = '\0'; + strlcpy(entry, buf, sizeof(entry)); + path_remove_extension(entry); if ( !string_is_empty(entry) &&