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....

This commit is contained in:
NightlyFox 2018-09-19 11:34:04 -05:00
parent afe968f458
commit 93ee023d10

View File

@ -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);