From e17fc4596bb344e370394b1490d1f5b12cedd305 Mon Sep 17 00:00:00 2001 From: zhuofan0129 <861080528@qq.com> Date: Mon, 15 Apr 2024 19:57:35 +0800 Subject: [PATCH] feat: clean codecheck Signed-off-by: zhuofan0129 <861080528@qq.com> --- baselib/utils/src/utils_base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baselib/utils/src/utils_base64.c b/baselib/utils/src/utils_base64.c index 12768b6..6a1d750 100644 --- a/baselib/utils/src/utils_base64.c +++ b/baselib/utils/src/utils_base64.c @@ -92,7 +92,7 @@ static int32_t Base64Encode(const uint8_t *from, uint32_t fromLen, uint8_t *to, if (padding-- > 0 && toLen >= 1) { to[toLen - 1] = '='; /* padding the -1 to "=" */ } - if (padding-- > 0 && toLen >= 2) { + if (padding-- > 0 && toLen >= 2) { /* toLen need to be larger than 2 */ to[toLen - 2] = '='; /* padding the -2 to "=" */ } -- Gitee