diff options
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); |