From 61730ce66a557e03bb9d82858c614ffd016097e0 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 16 Aug 2015 10:11:21 +0200 Subject: [PATCH] utf8.c: Fix typo reported-by: Yellow Rabbit --- lib/libc/locale/utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/locale/utf8.c b/lib/libc/locale/utf8.c index c2b8f433ec..ec91f04759 100644 --- a/lib/libc/locale/utf8.c +++ b/lib/libc/locale/utf8.c @@ -185,7 +185,7 @@ _UTF8_mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n, us->ch = wch; return ((size_t)-2); } - if (wch < lbound || (wch & ~10ffffff)) { + if (wch < lbound || (wch & ~0x10ffffff)) { /* * Malformed input; redundant encoding. */ -- 2.41.0