mirror of https://github.com/snes9xgit/snes9x.git
Handle . in extension for _makepath.
This commit is contained in:
parent
cfd8b299ba
commit
ba8b9711d6
|
@ -60,7 +60,8 @@ void _makepath(char *path, const char *drive, const char *dir, const char *fname
|
||||||
|
|
||||||
if (ext && *ext)
|
if (ext && *ext)
|
||||||
{
|
{
|
||||||
strcat(path, ".");
|
if (*ext != '.')
|
||||||
|
strcat(path, ".");
|
||||||
strcat(path, ext);
|
strcat(path, ext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue