all repos — mgba @ 33692c592310cd4fcca0108a3956c93d9d699f1a

mGBA Game Boy Advance Emulator

mGUI: Fix non-portable function call
Vicki Pfau vi@endrift.com
Tue, 04 Sep 2018 00:11:23 -0700
commit

33692c592310cd4fcca0108a3956c93d9d699f1a

parent

353176b1e11471b300290ebe950dba10b251fbb1

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/feature/gui/gui-config.csrc/feature/gui/gui-config.c

@@ -25,7 +25,7 @@ static bool _biosNamed(const char* name) {

char ext[PATH_MAX + 1] = {}; separatePath(name, NULL, NULL, ext); - if (strnstr(name, "bios", PATH_MAX)) { + if (strstr(name, "bios")) { return true; } if (!strncmp(ext, "bin", PATH_MAX)) {