From ca524f000e09a5cccc9d6a95ae0f5d79d08764ab Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sat, 24 Apr 2021 21:13:11 +0200 Subject: [PATCH] fix another stupid bug --- src/frontend/Util_ROM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/Util_ROM.cpp b/src/frontend/Util_ROM.cpp index b5e8a058..40552e29 100644 --- a/src/frontend/Util_ROM.cpp +++ b/src/frontend/Util_ROM.cpp @@ -561,7 +561,7 @@ int Reset() if (ROMPath[ROMSlot_GBA][0] != '\0') { char ext[5] = {0}; int _len = strlen(ROMPath[ROMSlot_GBA]); - strncpy(ext, ROMPath[ROMSlot_NDS] + _len - 4, 4); + strncpy(ext, ROMPath[ROMSlot_GBA] + _len - 4, 4); if(!strncmp(ext, ".gba", 4)) {