summaryrefslogtreecommitdiffstats
path: root/tests/test_encode1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_encode1.c')
-rw-r--r--tests/test_encode1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_encode1.c b/tests/test_encode1.c
index c5131e47..2e978296 100644
--- a/tests/test_encode1.c
+++ b/tests/test_encode1.c
@@ -22,7 +22,7 @@ int main()
/* Now encode it and check if we succeeded. */
if (pb_encode(&stream, Person_fields, &person))
{
- fwrite(buffer, stream.bytes_written, 1, stdout);
+ fwrite(buffer, 1, stream.bytes_written, stdout);
return 0; /* Success */
}
else