crypt32: Increase buffer size to silence a gcc warning.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-08-30 09:42:17 +02:00
parent 9944b97a89
commit 8738b038a4

View file

@ -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)
{