aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/consoleprocess_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/consoleprocess_win.cpp')
-rw-r--r--src/libs/utils/consoleprocess_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/consoleprocess_win.cpp b/src/libs/utils/consoleprocess_win.cpp
index be65c42cc8d..a4008dfd2e1 100644
--- a/src/libs/utils/consoleprocess_win.cpp
+++ b/src/libs/utils/consoleprocess_win.cpp
@@ -379,7 +379,8 @@ bool ConsoleProcess::startTerminalEmulator(QSettings *, const QString &workingDi
// cmdLine is assumed to be detached -
// https://blogs.msdn.microsoft.com/oldnewthing/20090601-00/?p=18083
- QString totalEnvironment = env.toStringList().join('\0') + '\0';
+
+ QString totalEnvironment = env.toStringList().join(QChar(QChar::Null)) + QChar(QChar::Null);
LPVOID envPtr = (env != Utils::Environment::systemEnvironment())
? (WCHAR *)(totalEnvironment.utf16()) : nullptr;