summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-21 21:42:20 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-21 21:42:20 +0000
commit90c21beb2f7a8a006932f10e5b5c1c15ab9ff8d0 (patch)
tree7417bab9f8c3c1d847d14aada26458113c8d7ec7 /document
parentc9db06db7b01a2da9228c38783fd9f95c4fc7bba (diff)
Stay within your buffer.
Diffstat (limited to 'document')
-rw-r--r--document/src/tests/testbytebuffer.cpp2
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));
}