SF.net SVN: geany:[3819] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Wed May 27 18:34:39 UTC 2009


Revision: 3819
          http://geany.svn.sourceforge.net/geany/?rev=3819&view=rev
Author:   eht16
Date:     2009-05-27 18:34:39 +0000 (Wed, 27 May 2009)

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

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/win32.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-05-27 18:00:05 UTC (rev 3818)
+++ trunk/ChangeLog	2009-05-27 18:34:39 UTC (rev 3819)
@@ -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>

Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c	2009-05-27 18:00:05 UTC (rev 3818)
+++ trunk/src/win32.c	2009-05-27 18:34:39 UTC (rev 3819)
@@ -929,6 +929,7 @@
 		*content = NULL;
 		return FALSE;
 	}
+	buffer[filesize] = '\0';
 	*content = buffer;
 	return TRUE;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list