From a3f5e4d81f8d81e208f33dded6d892fbbdce90bc Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Fri, 30 Dec 2011 08:57:27 +0000 Subject: 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 --- tests/test_encode1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_encode1.c') 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 -- cgit 1.2.3-korg