From 9369e800c0c42498d23d23ed0d4ee8d0a032c5a0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 29 Aug 2017 13:09:57 +0200 Subject: [PATCH] wintrust: Increase buffer size to silence a gcc warning. Signed-off-by: Alexandre Julliard --- dlls/wintrust/asn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wintrust/asn.c b/dlls/wintrust/asn.c index 035a59a76d6..6406ba34286 100644 --- a/dlls/wintrust/asn.c +++ b/dlls/wintrust/asn.c @@ -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); -- 2.11.4.GIT