forked from qt-creator/qt-creator
Debugger: Fix crash in console stub on Windows
by partially undoing 1a89786979
Task-number: QTCREATORBUG-1020
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user