mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-25 20:32:22 +00:00
Copy buf inside entry first
This commit is contained in:
parent
0006849ed5
commit
6e59a2cce1
@ -166,6 +166,8 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
|
|
||||||
entry[0] = '\0';
|
entry[0] = '\0';
|
||||||
|
|
||||||
|
strlcpy(entry, buf, sizeof(entry));
|
||||||
|
|
||||||
path_remove_extension(entry);
|
path_remove_extension(entry);
|
||||||
|
|
||||||
if ( !string_is_empty(entry) &&
|
if ( !string_is_empty(entry) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user