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
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ write_string(FILE *f, unsigned size, const char *buffer) ...@@ -129,7 +129,7 @@ write_string(FILE *f, unsigned size, const char *buffer)
{ {
size_t res = fwrite(buffer, 1, size, f); size_t res = fwrite(buffer, 1, size, f);
return res > 0; return res == size;
} }
int int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment