Commit 9369e800 authored by Alexandre Julliard's avatar Alexandre Julliard

wintrust: Increase buffer size to silence a gcc warning.

parent f7eb53b1
......@@ -1841,10 +1841,10 @@ static BOOL WINAPI CRYPT_AsnDecodeOidIgnoreTag(DWORD dwCertEncodingType,
/* The largest possible string for the first two components
* is 2.175 (= 2 * 40 + 175 = 255), so this is big enough.
*/
char firstTwo[6];
char firstTwo[8];
const BYTE *ptr;
snprintf(firstTwo, sizeof(firstTwo), "%d.%d",
sprintf(firstTwo, "%d.%d",
pbEncoded[1 + lenBytes] / 40,
pbEncoded[1 + lenBytes] - (pbEncoded[1 + lenBytes] / 40)
* 40);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment