From afe7c0477353998efaa9147abeca76a0d27a9e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Fri, 7 Feb 2014 09:20:54 +0100 Subject: [PATCH] Updated base16enc and base64enc example programs. --- ChangeLog | 2 ++ examples/base16dec.c | 2 -- examples/base64dec.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 66163a5a..69cd8764 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ * sexp-transport.c (sexp_transport_iterator_first): For base64_decode_update, omit initialization of coded_length. + * examples/base64dec.c (main): Likewise. + * examples/base16dec.c (main): Likewise, for base16_decode_update. * base64-decode.c (base64_decode_update): Use *dst_length for output only. Don't require callers to pass a sane value. diff --git a/examples/base16dec.c b/examples/base16dec.c index 4b124d28..7bc715d5 100644 --- a/examples/base16dec.c +++ b/examples/base16dec.c @@ -75,8 +75,6 @@ main(int argc UNUSED, char **argv UNUSED) return EXIT_FAILURE; } - decoded_bytes = BASE16_DECODE_LENGTH(nbytes); - /* Decodes one chunk: */ if (!base16_decode_update(&b16_ctx, &decoded_bytes, result, nbytes, buffer)) { diff --git a/examples/base64dec.c b/examples/base64dec.c index 653940eb..be2c9ecf 100644 --- a/examples/base64dec.c +++ b/examples/base64dec.c @@ -75,8 +75,6 @@ main(int argc UNUSED, char **argv UNUSED) return EXIT_FAILURE; } - decoded_bytes = BASE64_DECODE_LENGTH(nbytes); - /* Decodes one chunk: */ if (!base64_decode_update(&b64_ctx, &decoded_bytes, result, nbytes, buffer)) { -- GitLab