Skip to content
Snippets Groups Projects
Commit 1989e827 authored by Niels Möller's avatar Niels Möller
Browse files

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

Rev: src/nettle/examples/io.c:1.6
parent d7ed3c13
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment