summaryrefslogtreecommitdiffstats
path: root/tests/test_encode1.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-12-30 08:57:27 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-12-30 08:57:27 +0000
commita3f5e4d81f8d81e208f33dded6d892fbbdce90bc (patch)
treef68076e4d986d7121d59723befa802af17954d1f /tests/test_encode1.c
parent1506450b119a504259983692cca4c8cd3daddaf1 (diff)
Expanding the tests to better cover decoding from memory buffer.
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1090 e3a754e5-d11d-0410-8d38-ebb782a927b9
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