Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -148,8 +148,7 @@ int main() ...@@ -148,8 +148,7 @@ int main()
fseek(envFd, 0, SEEK_END); fseek(envFd, 0, SEEK_END);
size = ftell(envFd); size = ftell(envFd);
rewind(envFd); rewind(envFd);
env = malloc(size + sizeof(wchar_t)); env = malloc(size);
env[size] = 0;
if (fread(env, 1, size, envFd) != size) { if (fread(env, 1, size, envFd) != size) {
perror("Failed to read env file"); perror("Failed to read env file");
doExit(1); doExit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment