From 86688d72970526df1cedaa4abcf07250682d71c9 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 4 Jul 2020 06:22:02 +0800 Subject: [PATCH] Fix core listing in menu core. --- menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 98a97d3..097ce9d 100644 --- a/menu.cpp +++ b/menu.cpp @@ -332,7 +332,7 @@ static void SelectFile(const char* path, const char* pFileExt, unsigned char Opt strcpy(selPath, get_rbf_dir()); if (strlen(get_rbf_name())) { - strcat(selPath, "/"); + if(strlen(selPath)) strcat(selPath, "/"); strcat(selPath, get_rbf_name()); } pFileExt = "RBFMRA";