From 885121e25db2ec9a8191a406085d91790a133d20 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 28 Nov 2020 13:26:44 +0100 Subject: libbb: change decode_base32/64 API to return the end of _dst_, not _src_. function old new delta decode_base64 173 178 +5 read_base64 222 220 -2 decode_base32 186 182 -4 handle_incoming_and_exit 2263 2239 -24 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-30) Total: -25 bytes Signed-off-by: Denys Vlasenko --- networking/httpd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'networking') diff --git a/networking/httpd.c b/networking/httpd.c index 4ffd89c48..4346141ee 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1015,11 +1015,9 @@ static char *encodeString(const char *string) * Parameter: a pointer to a base64 encoded string. * Decoded data is stored in-place. */ -static void decodeBase64(char *Data) +static void decodeBase64(char *data) { - char *eptr = Data; - decode_base64(&eptr, Data); - *eptr = '\0'; + decode_base64(data, NULL)[0] = '\0'; } #endif -- cgit v1.2.3