Skip to content

Commit

Permalink
Fix _splitpath returning incorrect extension
Browse files Browse the repository at this point in the history
_splitpath is supposed to return the dot before the extension.
  • Loading branch information
Zegeri authored and eagleivg committed Nov 6, 2018
1 parent bfb7a0b commit 31bb00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/PlatformLinux.inl
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ inline void _splitpath (
{
char tmp_ext[NAME_MAX] = { 0 };
strcpy(tmp_ext, basename(tmp));
char *pos = strrchr(fname, '.');
char *pos = strrchr(tmp_ext, '.');
if(pos != NULL)
strcpy(ext, pos + 1);
strcpy(ext, pos);
else
strcpy(ext, "");
}
Expand Down

0 comments on commit 31bb00f

Please sign in to comment.