Commit d8a928ea authored by Claes's avatar Claes Committed by Esteban Blanc

dcli filename bugfix

parent 8143b249
......@@ -108,7 +108,7 @@ int dcli_get_defaultfilename(const char* inname, char* outname, const char* ext)
}
s = strrchr(s2, '.');
if (s == 0) {
if (s == 0 || s == s2) {
/* No extention found, add extention */
strcat(outname, ext);
}
......
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