Skip to content
Snippets Groups Projects
Commit 8595539a 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 162ff6db
Branches
Tags
No related merge requests found
......@@ -350,7 +350,7 @@ bool sbbs_t::random_menu(const char *name, long mode, JSObject* obj)
return false;
}
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)
continue;
*ext = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment