Commit 519459c5 authored by Rob Swindell's avatar Rob Swindell 💬
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
Pipeline #2935 passed with stage
in 9 minutes and 38 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment