Module: wine Branch: master Commit: 8738b038a41f5d7ca051d7ce6bfa921c5bd4b849 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8738b038a41f5d7ca051d7ce6b...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Aug 30 09:42:17 2017 +0200
crypt32: Increase buffer size to silence a gcc warning.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/crypt32/encode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index 29b3a66..6f9f595 100644 --- a/dlls/crypt32/encode.c +++ b/dlls/crypt32/encode.c @@ -3534,11 +3534,11 @@ static BOOL WINAPI CRYPT_AsnEncodeUtcTime(DWORD dwCertEncodingType, __TRY { SYSTEMTIME sysTime; - /* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ\0. I use a + /* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ. I use a * temporary buffer because the output buffer is not NULL-terminated. */ - char buf[16]; - static const DWORD bytesNeeded = sizeof(buf) - 1; + static const DWORD bytesNeeded = 15; + char buf[40];
if (!pbEncoded) { @@ -3591,11 +3591,11 @@ static BOOL CRYPT_AsnEncodeGeneralizedTime(DWORD dwCertEncodingType, __TRY { SYSTEMTIME sysTime; - /* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ\0. I use a + /* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ. I use a * temporary buffer because the output buffer is not NULL-terminated. */ - char buf[18]; - static const DWORD bytesNeeded = sizeof(buf) - 1; + static const DWORD bytesNeeded = 17; + char buf[40];
if (!pbEncoded) {