summaryrefslogtreecommitdiff
path: root/zen/process_exec.cpp
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-09-07 18:55:24 +0000
committerB. Stack <bgstack15@gmail.com>2022-09-07 18:55:24 +0000
commit1e582c4e99fe08c70c75fef7cd8ed22343253297 (patch)
treeb0047c655d52e4e479ceb73c713414f8d0744c38 /zen/process_exec.cpp
parentMerge branch 'b11.24' into 'master' (diff)
parentadd upstream 11.25 (diff)
downloadFreeFileSync-1e582c4e99fe08c70c75fef7cd8ed22343253297.tar.gz
FreeFileSync-1e582c4e99fe08c70c75fef7cd8ed22343253297.tar.bz2
FreeFileSync-1e582c4e99fe08c70c75fef7cd8ed22343253297.zip
Merge branch 'b11.25' into 'master'11.25
add upstream 11.25 See merge request opensource-tracking/FreeFileSync!48
Diffstat (limited to 'zen/process_exec.cpp')
-rw-r--r--zen/process_exec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/process_exec.cpp b/zen/process_exec.cpp
index df41a627..fb691151 100644
--- a/zen/process_exec.cpp
+++ b/zen/process_exec.cpp
@@ -19,7 +19,7 @@ using namespace zen;
Zstring zen::escapeCommandArg(const Zstring& arg)
{
-//*INDENT-OFF*
+//*INDENT-OFF* if not put exactly here, Astyle will seriously mess this .cpp file up!
Zstring output;
for (const Zchar c : arg)
switch (c)
@@ -27,7 +27,7 @@ Zstring zen::escapeCommandArg(const Zstring& arg)
case '"': output += "\\\""; break; //Windows: not needed; " cannot be used as file name
case '\\': output += "\\\\"; break; //Windows: path separator! => don't escape
case '`': output += "\\`"; break; //yes, used in some paths => Windows: no escaping required
- default: output += c; break;
+ default: output += c; break;
}
//*INDENT-ON*
if (contains(output, Zstr(' ')))
bgstack15