Commit c314d0d2 authored by Niels Möller's avatar Niels Möller

Updated base64 test case.

parent e6ecd591
2014-02-07 Niels Möller <nisse@lysator.liu.se>
* testsuite/base64-test.c (test_main): Updated
base64_decode_update test case.
* sexp-transport.c (sexp_transport_iterator_first): For
base64_decode_update, omit initialization of coded_length.
......
......@@ -39,7 +39,7 @@ test_main(void)
ASSERT(MEMEQ(9, buffer, "SGVsbG8=x"));
base64_decode_init(&ctx);
dst_length = 8;
dst_length = 0; /* Output parameter only. */
ASSERT(base64_decode_update(&ctx, &dst_length, buffer, 8, buffer));
ASSERT(dst_length == 5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment