diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-21 21:42:20 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-21 21:42:20 +0000 |
commit | 90c21beb2f7a8a006932f10e5b5c1c15ab9ff8d0 (patch) | |
tree | 7417bab9f8c3c1d847d14aada26458113c8d7ec7 /document | |
parent | c9db06db7b01a2da9228c38783fd9f95c4fc7bba (diff) |
Stay within your buffer.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/tests/testbytebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/tests/testbytebuffer.cpp b/document/src/tests/testbytebuffer.cpp index b4ad558b4ad..7d412be5ba3 100644 --- a/document/src/tests/testbytebuffer.cpp +++ b/document/src/tests/testbytebuffer.cpp @@ -62,6 +62,6 @@ TEST(ByteBuffer_Test, test_SerializableArray) EXPECT_EQ(4ul, array.get(0).size()); EXPECT_EQ(copy.get(0).size(), array.get(0).size()); EXPECT_TRUE(copy.get(0).c_str() != array.get(0).c_str()); - EXPECT_EQ(0, strcmp(copy.get(0).c_str(), array.get(0).c_str())); + EXPECT_EQ(0, strncmp(copy.get(0).c_str(), array.get(0).c_str(), 4)); EXPECT_EQ(16ul, sizeof(SerializableArray::Entry)); } |