summaryrefslogtreecommitdiff
path: root/src/utils/stringutils_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils_unittest.cc')
-rw-r--r--src/utils/stringutils_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils_unittest.cc b/src/utils/stringutils_unittest.cc
index 9fff91e84..c90dd1afd 100644
--- a/src/utils/stringutils_unittest.cc
+++ b/src/utils/stringutils_unittest.cc
@@ -486,7 +486,7 @@ TEST_CASE("stringutils getSafeUtf8String 2")
data1[65509] = '\0';
char *data2 = new char[65510];
memset(data2, 'a', 65500);
- data1[65500] = '\0';
+ data2[65500] = '\0';
getSafeUtf8String(data1, str);
REQUIRE(str != nullptr);
REQUIRE(strcmp(data2, str) == 0);