commit | c6e53da21bcc7c80e9de94c95212c531cd075cb1 | [log] [tgz] |
---|---|---|
author | Josh Coalson <jcoalson@users.sourceforce.net> | Thu Aug 25 00:22:06 2005 +0000 |
committer | Josh Coalson <jcoalson@users.sourceforce.net> | Thu Aug 25 00:22:06 2005 +0000 |
tree | 2f9b4457d4859f2f947c5642c086953c61853ceb | |
parent | b4de1692f345a8d7a802d275f40bb13807a11d2b [diff] [blame] |
fix bug in utf8len()
diff --git a/src/libFLAC/format.c b/src/libFLAC/format.c index 42e0903..5f14d68 100644 --- a/src/libFLAC/format.c +++ b/src/libFLAC/format.c
@@ -267,7 +267,7 @@ return 1; } else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) { - if ((utf8[0] & 0x01) == 0xC0) /* overlong sequence check */ + if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */ return 0; return 2; }