Commit 1989e827 authored by Niels Möller's avatar Niels Möller

(write_string): Treat short item count as an error.

Rev: src/nettle/examples/io.c:1.6
parent d7ed3c13
......@@ -129,7 +129,7 @@ write_string(FILE *f, unsigned size, const char *buffer)
{
size_t res = fwrite(buffer, 1, size, f);
return res > 0;
return res == size;
}
int
......
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