wintrust: Increase buffer size to silence a gcc warning.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f7eb53b1f9
commit
9369e800c0
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue