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-w32-885121e25db2ec9a8191a406085d91790a133d20.tar.gz busybox-w32-885121e25db2ec9a8191a406085d91790a133d20.tar.bz2 busybox-w32-885121e25db2ec9a8191a406085d91790a133d20.zip |
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) | |||
1015 | * Parameter: a pointer to a base64 encoded string. | 1015 | * Parameter: a pointer to a base64 encoded string. |
1016 | * Decoded data is stored in-place. | 1016 | * Decoded data is stored in-place. |
1017 | */ | 1017 | */ |
1018 | static void decodeBase64(char *Data) | 1018 | static void decodeBase64(char *data) |
1019 | { | 1019 | { |
1020 | char *eptr = Data; | 1020 | decode_base64(data, NULL)[0] = '\0'; |
1021 | decode_base64(&eptr, Data); | ||
1022 | *eptr = '\0'; | ||
1023 | } | 1021 | } |
1024 | #endif | 1022 | #endif |
1025 | 1023 | ||