Mercurial > hg > openttd
changeset 3649:42d25288b84c draft
(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.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Sun, 23 Apr 2006 22:28:26 +0000 |
parents | ed1f1b49492f |
children | dfb952f78e05 |
files | win32.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/win32.c +++ b/win32.c @@ -1197,7 +1197,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; @@ -1206,7 +1205,6 @@ return ret; } #endif -#endif /** * Insert a chunk of text from the clipboard onto the textbuffer. Get TEXT clipboard