Skip to content
Snippets Groups Projects
Commit 519459c5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

De-duplicate at the first '.' following the filename, not the path

Fix the fix to issue #380.

Thanks for letting me know Keyop.
parent 30cf70e9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2935 passed
...@@ -350,7 +350,7 @@ bool sbbs_t::random_menu(const char *name, long mode, JSObject* obj) ...@@ -350,7 +350,7 @@ bool sbbs_t::random_menu(const char *name, long mode, JSObject* obj)
return false; return false;
} }
for(size_t i = 0; i < g.gl_pathc; i++) { for(size_t i = 0; i < g.gl_pathc; i++) {
char* ext = strchr(g.gl_pathv[i], '.'); // intentionally not using getfext() - issue #380 char* ext = strchr(getfname(g.gl_pathv[i]), '.'); // intentionally not using getfext() - issue #380
if(ext == NULL) if(ext == NULL)
continue; continue;
*ext = 0; *ext = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment