wintrust: Increase buffer size to silence a gcc warning.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-08-29 13:09:57 +02:00
parent f7eb53b1f9
commit 9369e800c0
1 changed files with 2 additions and 2 deletions

View File

@ -1841,10 +1841,10 @@ static BOOL WINAPI CRYPT_AsnDecodeOidIgnoreTag(DWORD dwCertEncodingType,
/* The largest possible string for the first two components /* The largest possible string for the first two components
* is 2.175 (= 2 * 40 + 175 = 255), so this is big enough. * is 2.175 (= 2 * 40 + 175 = 255), so this is big enough.
*/ */
char firstTwo[6]; char firstTwo[8];
const BYTE *ptr; const BYTE *ptr;
snprintf(firstTwo, sizeof(firstTwo), "%d.%d", sprintf(firstTwo, "%d.%d",
pbEncoded[1 + lenBytes] / 40, pbEncoded[1 + lenBytes] / 40,
pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] / 40) pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] / 40)
* 40); * 40);