mirror of
https://github.com/Decscots/Lockpick_RCM.git
synced 2025-06-21 12:17:19 +02:00
Add memcmp result checks to avoid gcc optimization
This commit is contained in:
parent
4a69ea1922
commit
afd17a13ba
4 changed files with 6 additions and 14 deletions
|
@ -237,7 +237,7 @@ void launch_tools()
|
|||
|
||||
if (file_sec)
|
||||
{
|
||||
if (memcmp("sd:/", file_sec, 4))
|
||||
if (memcmp("sd:/", file_sec, 4) != 0)
|
||||
{
|
||||
memcpy(dir + strlen(dir), "/", 2);
|
||||
memcpy(dir + strlen(dir), file_sec, strlen(file_sec) + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue