summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-01-20 23:24:17 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-01-20 23:24:17 +0000
commit0d0f15d8d1e891f18e1885c152ceadcc68cd72a1 (patch)
tree7e1e3809eeb4772c8a48333b0b5d9ad1c27e767b /ms
parenta72ce94213c1a82807fea08a7e5a78d33a37c06d (diff)
fix Visual Studio 2010 warning [from HEAD] (original by appro)
Diffstat (limited to 'ms')
-rw-r--r--ms/uplink.c3
1 files changed, 2 insertions, 1 deletions
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)