utf8.c: Fix second error of two-line patch
authorJohn Marino <draco@marino.st>
Sun, 16 Aug 2015 18:49:12 +0000 (20:49 +0200)
committerJohn Marino <draco@marino.st>
Sun, 16 Aug 2015 18:49:53 +0000 (20:49 +0200)
Embarrassing.

lib/libc/locale/utf8.c

index ec91f04..589e8c1 100644 (file)
@@ -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 & ~0x10ffffff)) {
+       if (wch < lbound || (wch & ~0x10ffff)) {
                /*
                 * Malformed input; redundant encoding.
                 */