From 54b61482596bc024918fbaa54d82facb56f94fed Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Fri, 11 Oct 2019 15:19:02 -0700 Subject: [PATCH] Add comment --- wolfcrypt/src/coding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/coding.c b/wolfcrypt/src/coding.c index cee699575..88b447a08 100644 --- a/wolfcrypt/src/coding.c +++ b/wolfcrypt/src/coding.c @@ -130,7 +130,7 @@ int Base64_Decode(const byte* in, word32 inLen, byte* out, word32* outLen) } } } - +/* If the output buffer has a room for an extra byte, add a null terminator */ if (out && *outLen > i) out[i]= '\0'; @@ -324,7 +324,7 @@ static int DoBase64_Encode(const byte* in, word32 inLen, byte* out, if (i != outSz && escaped != 1 && ret == 0) return ASN_INPUT_E; - +/* If the output buffer has a room for an extra byte, add a null terminator */ if (out && *outLen > i) out[i]= '\0';