Skip to content

Commit

Permalink
fix get_file_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Jun 6, 2020
1 parent cceffc7 commit cd12dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int list_directory(const path_t& dirpath, std::vector<path_t>& imagepaths

static path_t get_file_extension(const path_t& path)
{
size_t dot = path.find(PATHSTR('.'));
size_t dot = path.rfind(PATHSTR('.'));
if (dot == path_t::npos)
return path_t();

Expand Down

0 comments on commit cd12dff

Please sign in to comment.