diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-28 13:26:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-11-28 13:27:36 +0100 |
commit | 885121e25db2ec9a8191a406085d91790a133d20 (patch) | |
tree | aa5c89af1b273c618bef11b836de38788007b4c9 /networking | |
parent | fc6faac84e978c9482106f53e711ab971a0ce188 (diff) | |
download | busybox-885121e25db2ec9a8191a406085d91790a133d20.tar.gz |
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 <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |