Skip to content

Commit

Permalink
Merge pull request #35 from s-andro/fix-basename
Browse files Browse the repository at this point in the history
Remove unnecessary period from basename.
  • Loading branch information
unknownbrackets authored May 16, 2020
2 parents 26a4b1f + 6939be5 commit 9577435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static std::string get_basename(std::string &filename) {
char ext[MAX_PATH];
// We want the ext because it might be "foo.bar.baz".
if (_splitpath_s(filename.c_str(), nullptr, 0, nullptr, 0, name, MAX_PATH, ext, MAX_PATH) == 0) {
return std::string(name) + "." + ext;
return std::string(name) + ext;
}
return filename;
#else
Expand Down

0 comments on commit 9577435

Please sign in to comment.