diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-04-22 10:12:42 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-04-22 10:12:42 -0400 |
commit | ea13edcae00cc4ab1805e85322e73b7aa2faba7a (patch) | |
tree | 1960e726574ebcb8ce52230c0cc86ecce4833f91 /tests/test_message.cpp | |
parent | 157c0fa67e1ccdaac5a66983004dab8e978f2b4f (diff) |
don't use variable length or zero-length arrays in test files
as some compilers don't handle that
Diffstat (limited to 'tests/test_message.cpp')
-rw-r--r-- | tests/test_message.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_message.cpp b/tests/test_message.cpp index 25693f5..fa2d0cc 100644 --- a/tests/test_message.cpp +++ b/tests/test_message.cpp @@ -49,7 +49,7 @@ TestCase test_case("Message encode test"); std::size_t length = olm::encode_message_length(1, 10, 10, 8); assert_equals(std::size_t(35), length); -std::uint8_t output[length]; +std::uint8_t output[35]; olm::MessageWriter writer; olm::encode_message(writer, 3, 1, 10, 10, output); |