Skip to content

Commit

Permalink
actually add new extensions to names with dots in them
Browse files Browse the repository at this point in the history
  • Loading branch information
LADSoft committed May 13, 2024
1 parent d5b3c52 commit 14c56e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ FILE* Utils::TempName(std::string& name)
void Utils::AddExt(char* buffer, const char* ext)
{
char* pos = (char*)strrchr(buffer, '.');
if (!pos || (*(pos - 1) == '.') || (*(pos + 1) == '\\'))
if (!pos || strcmp(pos,ext) != 0)
strcat(buffer, ext);
}

Expand Down

0 comments on commit 14c56e3

Please sign in to comment.