Commit 76da9500 authored by Niels Möller's avatar Niels Möller

Fix pointer signedness warning in nettle-lfib-stream.

parent c9443aa7
......@@ -25,6 +25,8 @@
argument to test_armor.
* testsuite/base64-test.c (test_main): Likewise.
* tools/nettle-lfib-stream.c (main): Fix pointer signedness warning.
2016-08-29 Niels Möller <nisse@lysator.liu.se>
* sexp-format.c (strlen_u8): New helper function.
......
......@@ -80,10 +80,10 @@ main(int argc, char **argv)
for (;;)
{
char buffer[BUFSIZE];
knuth_lfib_random(&ctx, BUFSIZE, buffer);
uint8_t buffer[BUFSIZE];
knuth_lfib_random(&ctx, sizeof(buffer), buffer);
if (fwrite(buffer, 1, BUFSIZE, stdout) < BUFSIZE
if (fwrite(buffer, 1, sizeof(buffer), stdout) < sizeof(buffer)
|| fflush(stdout) < 0)
return EXIT_FAILURE;
}
......
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