summaryrefslogtreecommitdiffstats
path: root/tests/basic_buffer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic_buffer')
-rw-r--r--tests/basic_buffer/decode_buffer.c2
-rw-r--r--tests/basic_buffer/encode_buffer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/basic_buffer/decode_buffer.c b/tests/basic_buffer/decode_buffer.c
index d231c916..fae9e2fa 100644
--- a/tests/basic_buffer/decode_buffer.c
+++ b/tests/basic_buffer/decode_buffer.c
@@ -60,7 +60,7 @@ bool print_person(pb_istream_t *stream)
int main()
{
- uint8_t buffer[512];
+ uint8_t buffer[Person_size];
pb_istream_t stream;
size_t count;
diff --git a/tests/basic_buffer/encode_buffer.c b/tests/basic_buffer/encode_buffer.c
index d3e4f6e6..c412c14e 100644
--- a/tests/basic_buffer/encode_buffer.c
+++ b/tests/basic_buffer/encode_buffer.c
@@ -10,7 +10,7 @@
int main()
{
- uint8_t buffer[512];
+ uint8_t buffer[Person_size];
pb_ostream_t stream;
/* Initialize the structure with constants */