From: Gerhard Sittig Date: Wed, 21 Jul 2021 21:33:23 +0000 (+0200) Subject: tests: unbreak endianess conversion test routine (too small a buffer) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=df98afc6d181953f6c39133c5a6d42630d3869aa;p=libsigrok.git tests: unbreak endianess conversion test routine (too small a buffer) Writing four times 48 bits to a buffer that is two times 64 bits will exceed that buffer. Fix an issue introduced in commit 8f87c5284bf0. --- diff --git a/tests/conv.c b/tests/conv.c index f126c470..5ef0bab1 100644 --- a/tests/conv.c +++ b/tests/conv.c @@ -206,7 +206,7 @@ END_TEST START_TEST(test_endian_write_inc) { - uint8_t buff[2 * sizeof(uint64_t)]; + uint8_t buff[3 * sizeof(uint64_t)]; uint8_t *p; size_t l;