Skip to content

Commit c8abf65

Browse files
committed
Merge branch 'bc/commit-invalid-utf8'
* bc/commit-invalid-utf8: commit: typofix for xxFFF[EF] check
2 parents d6cbf2f + dc773a6 commit c8abf65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ static int find_invalid_utf8(const char *buf, int len)
14161416
if ((codepoint & 0x1ff800) == 0xd800)
14171417
return bad_offset;
14181418
/* U+xxFFFE and U+xxFFFF are guaranteed non-characters. */
1419-
if ((codepoint & 0xffffe) == 0xfffe)
1419+
if ((codepoint & 0xfffe) == 0xfffe)
14201420
return bad_offset;
14211421
/* So are anything in the range U+FDD0..U+FDEF. */
14221422
if (codepoint >= 0xfdd0 && codepoint <= 0xfdef)

0 commit comments

Comments
 (0)