diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-06-25 16:51:47 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-06-25 16:51:47 +0300 |
commit | 1a52d876f7e10d07f58deee6faeaf70a11a6110f (patch) | |
tree | f69ba903180b3deac3bba2ee7acda9d34f18d73c /src/test/nxt_utf8_test.c | |
parent | af31012815e20f0c92ed6ea803638a16ba47b0c2 (diff) | |
download | unit-1a52d876f7e10d07f58deee6faeaf70a11a6110f.tar.gz unit-1a52d876f7e10d07f58deee6faeaf70a11a6110f.tar.bz2 |
Introduced nxt_length() macro.
Diffstat (limited to 'src/test/nxt_utf8_test.c')
-rw-r--r-- | src/test/nxt_utf8_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/nxt_utf8_test.c b/src/test/nxt_utf8_test.c index 7a6dcd33..bca9a737 100644 --- a/src/test/nxt_utf8_test.c +++ b/src/test/nxt_utf8_test.c @@ -178,8 +178,8 @@ nxt_utf8_test(nxt_thread_t *thr) n = nxt_utf8_casecmp((u_char *) "ABC АБВ ΑΒΓ", (u_char *) "abc абв αβγ", - sizeof("ABC АБВ ΑΒΓ") - 1, - sizeof("abc абв αβγ") - 1); + nxt_length("ABC АБВ ΑΒΓ"), + nxt_length("abc абв αβγ")); if (n != 0) { nxt_log_alert(thr->log, "nxt_utf8_casecmp() failed"); |