mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:14:09 +00:00
crypt32: Increase buffer size to silence a gcc warning.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9944b97a89
commit
8738b038a4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue