Handle . in extension for _makepath.

This commit is contained in:
BearOso 2020-09-07 11:09:15 -05:00
parent cfd8b299ba
commit ba8b9711d6
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ void _makepath(char *path, const char *drive, const char *dir, const char *fname
if (ext && *ext)
{
strcat(path, ".");
if (*ext != '.')
strcat(path, ".");
strcat(path, ext);
}
}