From 5d8e216c301b87c320fbeda86e8df7eb30ac54a7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 16 Jan 2018 21:34:16 +0100 Subject: [PATCH] Fix bridges on windows, due to missing String::quoted --- source/modules/water/threads/ChildProcess.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/modules/water/threads/ChildProcess.cpp b/source/modules/water/threads/ChildProcess.cpp index 91a7b3475..776fd28f1 100644 --- a/source/modules/water/threads/ChildProcess.cpp +++ b/source/modules/water/threads/ChildProcess.cpp @@ -346,18 +346,19 @@ bool ChildProcess::start (const StringArray& args, int streamFlags) { String escaped; - for (int i = 0; i < args.size(); ++i) + for (int i = 0, size = args.size(); i < size; ++i) { String arg (args[i]); -#if 0 // FIXME // If there are spaces, surround it with quotes. If there are quotes, // replace them with \" so that CommandLineToArgv will correctly parse them. if (arg.containsAnyOf ("\" ")) arg = arg.replace ("\"", "\\\"").quoted(); -#endif - escaped << arg << ' '; + escaped << arg; + + if (i+1 < size) + escaped << ' '; } return start (escaped.trim(), streamFlags);