crypt32: Fix overestimating size required for base64-encoded strings.

This commit is contained in:
Juan Lang 2010-03-19 15:51:24 -07:00 committed by Alexandre Julliard
parent 341ba18d75
commit 67bf4dc62e
1 changed files with 0 additions and 4 deletions

View File

@ -204,8 +204,6 @@ static BOOL BinaryToBase64A(const BYTE *pbBinary,
charsNeeded = 0;
encodeBase64A(pbBinary, cbBinary, sep, NULL, &charsNeeded);
if (sep)
charsNeeded += strlen(sep);
if (header)
charsNeeded += strlen(header) + strlen(sep);
if (trailer)
@ -409,8 +407,6 @@ static BOOL BinaryToBase64W(const BYTE *pbBinary,
charsNeeded = 0;
encodeBase64W(pbBinary, cbBinary, sep, NULL, &charsNeeded);
if (sep)
charsNeeded += strlenW(sep);
if (header)
charsNeeded += strlenW(header) + strlenW(sep);
if (trailer)