commit: typofix for xxFFF[EF] check

We wanted to catch all codepoints that ends with FFFE and FFFF, not with 0FFFE and 0FFFF. Noticed and corrected by Peter Krefting. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Aug 5, 2013 at 09:52 UTC dc773a67e1a165c8866538fe3e754816b2e27447
1 file changed +1 -1
commit.c
+1 -1
@@ -1306,7 +1306,7 @@ static int find_invalid_utf8(const char *buf, int len)
1306 if ((codepoint & 0x1ff800) == 0xd800)
1307 return bad_offset;
1308 /* U+xxFFFE and U+xxFFFF are guaranteed non-characters. */
1309 - if ((codepoint & 0xffffe) == 0xfffe)
1309 + if ((codepoint & 0xfffe) == 0xfffe)
1310 return bad_offset;
1311 /* So are anything in the range U+FDD0..U+FDEF. */
1312 if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)