From b429c4cbb9ac7866112dd82162c2e854d00a8ff6 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 13 Jul 2011 14:54:38 +0000 Subject: ms/uplink.c: fix Visual Studio 2010 warning. --- ms/uplink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ms') 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) -- cgit v1.2.3