From: Andy Polyakov Date: Wed, 13 Jul 2011 14:55:11 +0000 (+0000) Subject: ms/uplink.c: fix Visual Studio 2010 warning [from HEAD]. X-Git-Tag: OpenSSL_1_0_0e~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a12eff4b2711a5efaa927ca1c9fd188af8fa944;p=oweals%2Fopenssl.git ms/uplink.c: fix Visual Studio 2010 warning [from HEAD]. --- diff --git a/ms/uplink.c b/ms/uplink.c index 7b7da08d47..6d59cb1f87 100644 --- a/ms/uplink.c +++ b/ms/uplink.c @@ -40,7 +40,8 @@ void OPENSSL_Uplink (volatile void **table, int index) * should be sufficient [it prohibits compiler to reorder memory * access instructions]. */ do { - len = _stprintf (msg,_T("OPENSSL_Uplink(%p,%02X): "),table,index); + len = _sntprintf (msg,sizeof(msg)/sizeof(TCHAR), + _T("OPENSSL_Uplink(%p,%02X): "),table,index); _tcscpy (msg+len,_T("unimplemented function")); if ((h=apphandle)==NULL)