From 93ee023d10d70e36923463f2e129457662acf5b6 Mon Sep 17 00:00:00 2001 From: NightlyFox Date: Wed, 19 Sep 2018 11:34:04 -0500 Subject: [PATCH] saw a potential bug, where i was changing the size of something a while back to try and remove the file extension, forgot to remove it. Removed.... --- common/menu-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/menu-list.c b/common/menu-list.c index 1cbc6f9..22c5fb7 100644 --- a/common/menu-list.c +++ b/common/menu-list.c @@ -184,7 +184,7 @@ int themeMenuScan(const char* target) { if (!me) continue; - strncpy(me->path, tmp_path, sizeof(me->path)-5);//-(1 + 4 for the file extension size) + strncpy(me->path, tmp_path, sizeof(me->path)-1); me->path[sizeof(me->path)-1] = 0; if (menuEntryLoad(me,(const char*)name, shortcut)) menuAddEntry(me);