From ada0342cec25964231c15743b84b78e2dc29ab92 Mon Sep 17 00:00:00 2001 From: Emre Kurubas Date: Thu, 15 Mar 2018 09:49:22 +0200 Subject: [PATCH] Fixed output path problem which did not allow using spaces. --- EtcTool/EtcTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EtcTool/EtcTool.cpp b/EtcTool/EtcTool.cpp index 1b52778..0879fe5 100644 --- a/EtcTool/EtcTool.cpp +++ b/EtcTool/EtcTool.cpp @@ -816,7 +816,7 @@ void Commands::PrintUsageMessage(void) char strCommand[300]; #if ETC_WINDOWS - sprintf_s(strCommand, "if not exist %s %s %s", path, ETC_MKDIR_COMMAND, path); + sprintf_s(strCommand, "if not exist \"%s\" %s \"%s\"", path, ETC_MKDIR_COMMAND, path); #else sprintf(strCommand, "%s %s", ETC_MKDIR_COMMAND, path); #endif