From: Henrik Holst Date: Tue, 1 Feb 2022 12:39:06 +0000 (+0100) Subject: base64: remove an unnecessary call to strlen X-Git-Tag: curl-7_82_0~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d370ecbfe24b7a1dcecf4d5076b230eb2c2f34f;p=thirdparty%2Fcurl.git base64: remove an unnecessary call to strlen Closes #8369 --- diff --git a/lib/base64.c b/lib/base64.c index be6f163dc4..527e29955a 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2022, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -273,7 +273,7 @@ static CURLcode base64_encode(const char *table64, free(convbuf); /* Return the length of the new data */ - *outlen = strlen(base64data); + *outlen = output - base64data; return CURLE_OK; }