Module: wine Branch: master Commit: 9369e800c0c42498d23d23ed0d4ee8d0a032c5a0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9369e800c0c42498d23d23ed0d...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Aug 29 13:09:57 2017 +0200
wintrust: Increase buffer size to silence a gcc warning.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 035a59a..6406ba3 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);