(svn r4680) - Backport from trunk (r4560): 0.4
authorDarkvater
Tue, 02 May 2006 13:48:33 +0000
branch0.4
changeset 9994 c45aa2513ffb
parent 9993 3952f4789a9b
child 9995 ea56575f8e44
(svn r4680) - Backport from trunk (r4560):
Fix: Remove VS2005 undefined vsnprintf() as it doesn't exist
in the windows libraries (only _vsnprintf). This caused the bad
function to be called that could result in non-properly terminated
strings
win32.c
--- a/win32.c	Tue May 02 13:47:00 2006 +0000
+++ b/win32.c	Tue May 02 13:48:33 2006 +0000
@@ -1217,7 +1217,6 @@
 }
 
 #ifdef _MSC_VER
-#if _MSC_VER < 1400 /* Already defined in VS 2005 */
 int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
 {
 	int ret;
@@ -1226,7 +1225,6 @@
 	return ret;
 }
 #endif
-#endif
 
 /**
  * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard