From 82d4d0f0cfc47a5b4520cf631290f8ced08a0f04 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Mon, 4 Jul 2016 03:56:34 +0200 Subject: utf8: fix test --- tests/check_utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check_utf8.c b/tests/check_utf8.c index 9f8c244..d9b6cd4 100644 --- a/tests/check_utf8.c +++ b/tests/check_utf8.c @@ -82,7 +82,7 @@ test_utf8_skip_bom(void **state) assert_int_equal(blogc_utf8_skip_bom(c, 3), 3); assert_string_equal(c + 3, ""); const uint8_t d[8] = {0xef, 0xbb, 0xbf, 'b', 'o', 'l', 'a', 0}; - assert_int_equal(blogc_utf8_skip_bom(d, 8), 3); + assert_int_equal(blogc_utf8_skip_bom(d, 7), 3); assert_string_equal(d + 3, "bola"); const uint8_t e[5] = "bola"; assert_int_equal(blogc_utf8_skip_bom(e, 4), 0); -- cgit v1.2.3-18-g5258