summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-04-23 22:28:26 +0000
committerDarkvater <darkvater@openttd.org>2006-04-23 22:28:26 +0000
commita665462cc1b8b504dd7f3338583f2d8f8f80c094 (patch)
tree6207097ccbe977c14a063c3b88c9e4f17d1b5add /win32.c
parent7555d8528b5e12cc9d73c810d89f9bbaf8d8fd87 (diff)
downloadopenttd-a665462cc1b8b504dd7f3338583f2d8f8f80c094.tar.xz
(svn r4560) - Fix: (r3008) 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. Thanks for noticing Tron.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 321597283..b5eb4e462 100644
--- a/win32.c
+++ b/win32.c
@@ -1197,7 +1197,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;
@@ -1206,7 +1205,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