From ec18908c82a6760389979be57e8f6c3834fcd0d7 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 2 May 2006 13:48:33 +0000 Subject: [PATCH] (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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/win32.c b/win32.c index 9dfd8f726d..9a56a15ff1 100644 --- a/win32.c +++ b/win32.c @@ -1217,7 +1217,6 @@ int CDECL snprintf(char *str, size_t size, const char *format, ...) } #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 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap) return ret; } #endif -#endif /** * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard