From ba8b9711d6d717da974b9d0ec3ed654f9b2c8296 Mon Sep 17 00:00:00 2001 From: BearOso Date: Mon, 7 Sep 2020 11:09:15 -0500 Subject: [PATCH] Handle . in extension for _makepath. --- compat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }