Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
fd0311bd
Commit
fd0311bd
authored
Sep 02, 2010
by
Friedemann Kleint
Browse files
Debugger: Fix crash in console stub on Windows
by partially undoing
1a897869
Task-number: QTCREATORBUG-1020
parent
3d5ec357
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/process_stub_win.c
View file @
fd0311bd
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment