diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 21:47:11 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 21:47:11 +0100 |
commit | 550ac1f25007d336cdb783fee2a3c2568377fa3b (patch) | |
tree | ff471aa322697fc9e0ee554ed217018ceba64a2d /lv2/atom | |
parent | 37e64e93bd2b634e3768c9c01aa9d041f3a800f6 (diff) | |
download | lv2-550ac1f25007d336cdb783fee2a3c2568377fa3b.tar.xz |
Fix build on old GCC
Diffstat (limited to 'lv2/atom')
-rw-r--r-- | lv2/atom/forge-overflow-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/atom/forge-overflow-test.c b/lv2/atom/forge-overflow-test.c index 7a5d102..daad3f8 100644 --- a/lv2/atom/forge-overflow-test.c +++ b/lv2/atom/forge-overflow-test.c @@ -28,7 +28,7 @@ static int test_string_overflow(void) { static const size_t max_chars = 15; - static const size_t capacity = sizeof(LV2_Atom_String) + max_chars + 1; + static const size_t capacity = 8 + max_chars + 1; static const char* str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; uint8_t* buf = (uint8_t*)malloc(capacity); @@ -66,7 +66,7 @@ test_string_overflow(void) static int test_literal_overflow(void) { - static const size_t capacity = sizeof(LV2_Atom_Literal) + 2; + static const size_t capacity = 16 + 2; uint8_t* buf = (uint8_t*)malloc(capacity); LV2_URID_Map map = { NULL, urid_map }; |