Commit fd0311bd authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix crash in console stub on Windows

by partially undoing 1a897869

Task-number: QTCREATORBUG-1020
parent 3d5ec357
......@@ -148,8 +148,7 @@ int main()
fseek(envFd, 0, SEEK_END);
size = ftell(envFd);
rewind(envFd);
env = malloc(size + sizeof(wchar_t));
env[size] = 0;
env = malloc(size);
if (fread(env, 1, size, envFd) != size) {
perror("Failed to read env file");
doExit(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment