summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-15 18:23:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-15 18:23:38 +0300
commit510af8a3ef3c7744863e51567eb6e2ee2e17fb3a (patch)
tree351619baecc6160d8a8759eafb1be88b3ce75033
parent1589afe6a5903f8d2377bc27aff728f3cad2e106 (diff)
downloadmanaplus-510af8a3ef3c7744863e51567eb6e2ee2e17fb3a.tar.gz
manaplus-510af8a3ef3c7744863e51567eb6e2ee2e17fb3a.tar.bz2
manaplus-510af8a3ef3c7744863e51567eb6e2ee2e17fb3a.tar.xz
manaplus-510af8a3ef3c7744863e51567eb6e2ee2e17fb3a.zip
Fix unit tests.
-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);