# HG changeset patch # User Mike Becker # Date 1734277364 -3600 # Node ID 989e144c912abb5c525655c337c29fc76702a539 # Parent 2911c1f4a57023a0d77c2fcfb14a7a2bda73c4e7 fix out of range access in test on platforms which are actually shrinking the buffer diff -r 2911c1f4a570 -r 989e144c912a tests/test_buffer.c --- a/tests/test_buffer.c Sun Dec 15 16:28:05 2024 +0100 +++ b/tests/test_buffer.c Sun Dec 15 16:42:44 2024 +0100 @@ -845,7 +845,7 @@ CX_TEST_ASSERT(buf.size == 8); CX_TEST_ASSERT(buf.pos == 8); CX_TEST_ASSERT(buf.capacity > 8); - CX_TEST_ASSERT(0 == memcmp(buf.space, "preptest\0A", 10)); + CX_TEST_ASSERT(0 == memcmp(buf.space, "preptest\0", 9)); } cxBufferDestroy(&buf); }