From 65c94ceb29f43cd30ece6eacc0c526861a705d34 Mon Sep 17 00:00:00 2001 From: KrahJohlito Date: Wed, 6 Nov 2024 10:09:27 +1030 Subject: [PATCH] fix strncmp --- ee_core/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee_core/src/main.c b/ee_core/src/main.c index e4cc13539..438f81058 100644 --- a/ee_core/src/main.c +++ b/ee_core/src/main.c @@ -47,7 +47,7 @@ static int eecoreInit(int argc, char **argv) config->GameMode = BDM_M4S_MODE; else if (!_strncmp(config->GameModeDesc, "BDM_USB_MODE", 12)) config->GameMode = BDM_USB_MODE; - else if (!_strncmp(config->GameModeDesc, "BDM_ATA_MODE", 16)) + else if (!_strncmp(config->GameModeDesc, "BDM_ATA_MODE", 12)) config->GameMode = BDM_HDD_MODE; else if (!_strncmp(config->GameModeDesc, "ETH_MODE", 8)) config->GameMode = ETH_MODE;