From 703d2413e9aab42d090f3fbed363908a9913a590 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 12 Jun 2016 16:23:36 +0200 Subject: [PATCH] Fix extension of files from zip config template --- source/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 832dae2d..3306dd19 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -951,7 +951,7 @@ void createconfigtemplates(const char *templatezip) // create customisable conf const char *filename = behindpath(files[i]); // only look for config files in the zip file, ignore all paths in the zip if(strlen(filename) > 4 && !strcmp(filename + strlen(filename) - 4, ".cfg")) { - defformatstring(fname)("config%c%s.cfg", PATHDIV, files[i]); + defformatstring(fname)("config" PATHDIVS "%s", files[i]); if(getfilesize(fname) <= 0) // config does not exist or is empty { stream *zf = openfile(fname, "wb");