diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-07-02 21:14:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-07-05 12:10:06 +0100 |
| commit | ed68d1ff287d43c5293abb4d41e908aa8e50afec (patch) | |
| tree | b5ab042ba67259a63b2aa0ae99ad74a5bc646a7f /src/unit_tests.cc | |
| parent | 3f70d91f8c716ef2dbc76abb9c878f86ecb946f7 (diff) | |
utf8: use end of sequence iterators for more security
Diffstat (limited to 'src/unit_tests.cc')
| -rw-r--r-- | src/unit_tests.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit_tests.cc b/src/unit_tests.cc index 85038d06..3795b8a5 100644 --- a/src/unit_tests.cc +++ b/src/unit_tests.cc @@ -99,7 +99,7 @@ void test_utf8() { String str = "maïs mélange bientôt"; kak_assert(utf8::distance(str.begin(), str.end()) == 20); - kak_assert(utf8::codepoint(str.begin() + 2) == 0x00EF); + kak_assert(utf8::codepoint(str.begin() + 2, str.end()) == 0x00EF); } void test_string() |
