Kaydet (Commit) 89c442d3 authored tarafından Enrico Tröger's avatar Enrico Tröger

Properly terminate the resulting strings when reading the stdout and stderr of…

Properly terminate the resulting strings when reading the stdout and stderr of any spawned commands on Windows.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3819 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 538f2f5d
......@@ -7,6 +7,8 @@
* src/win32.c:
On Windows, fallback to the literal build command line if searching
for the command in the system path failed (related to #2795923).
Properly terminate the resulting strings when reading the stdout
and stderr of any spawned commands on Windows.
2009-05-26 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -929,6 +929,7 @@ static gboolean GetContentFromHandle(HANDLE hFile, gchar **content, GError **err
*content = NULL;
return FALSE;
}
buffer[filesize] = '\0';
*content = buffer;
return TRUE;
}
......
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