diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-26 10:23:37 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-26 10:23:37 +0300 |
commit | 388d4de833cf4e2127b2ab0489cb6b14ecc0cbb5 (patch) | |
tree | f02cca531cd6ad210b1d3e57627e84f8feb3ac3a /tests/alltypes | |
parent | 2363af29a238fb4fa17474c979a0f45cde617a9e (diff) |
Add #defines for the maximum encoded message size.
Update issue 89
Status: FixedInGit
Diffstat (limited to 'tests/alltypes')
-rw-r--r-- | tests/alltypes/encode_alltypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/alltypes/encode_alltypes.c b/tests/alltypes/encode_alltypes.c index 88fc10f..9a2c6f6 100644 --- a/tests/alltypes/encode_alltypes.c +++ b/tests/alltypes/encode_alltypes.c @@ -115,7 +115,7 @@ int main(int argc, char **argv) alltypes.end = 1099; { - uint8_t buffer[1024]; + uint8_t buffer[AllTypes_size]; pb_ostream_t stream = pb_ostream_from_buffer(buffer, sizeof(buffer)); /* Now encode it and check if we succeeded. */ |