diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index 331af3832..7b9162e97 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -1147,7 +1147,7 @@ String Utility::EscapeCreateProcessArg(const String& arg) result.Append(numBackslashes * 2, '\\'); break; } else if (*it == '"') { - result.Append(numBackslashes * 2, '\\'); + result.Append(numBackslashes * 2 + 1, '\\'); result.Append(1, *it); } else { result.Append(numBackslashes, '\\');