From 84d1c7709abed907b53e9cdd145384d5fa7c51b2 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Wed, 12 Jan 2011 07:32:02 +0000 Subject: Use _vsnprintf in stead of vsnprintf, because MSVC 6 doesn't have it. Reported by andreask. --- ChangeLog | 5 +++++ win/tclWinFile.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8da281..0466b7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-12 Jan Nijtmans + + * win/tclWinFile.c: Use _vsnprintf in stead of vsnprintf, because + MSVC 6 doesn't have it. Reported by andreask. + 2011-01-07 Kevin B. Kenny * tests/util.test (util-15.*): Added test cases for floating point diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 1e1fe90..0e3b33f 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFile.c,v 1.119 2010/12/16 08:52:37 nijtmans Exp $ + * RCS: @(#) $Id: tclWinFile.c,v 1.120 2011/01/12 07:32:02 nijtmans Exp $ */ #include "tclWinInt.h" @@ -811,7 +811,7 @@ tclWinDebugPanic( WCHAR msgString[TCL_MAX_WARN_LEN]; va_start(argList, format); - vsnprintf(buf, sizeof(buf), format, argList); + _vsnprintf(buf, sizeof(buf), format, argList); msgString[TCL_MAX_WARN_LEN-1] = L'\0'; MultiByteToWideChar(CP_UTF8, 0, buf, -1, msgString, TCL_MAX_WARN_LEN); -- cgit v0.12