ms/uplink.c: fix Visual Studio 2010 warning.
authorAndy Polyakov <appro@openssl.org>
Wed, 13 Jul 2011 14:54:38 +0000 (14:54 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 13 Jul 2011 14:54:38 +0000 (14:54 +0000)
ms/uplink.c

index 7b7da08..6d59cb1 100644 (file)
@@ -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)