diff --git a/compat.cpp b/compat.cpp index 61d18c91..e03d3d83 100644 --- a/compat.cpp +++ b/compat.cpp @@ -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); } }