code-format

This commit is contained in:
vanhauser-thc
2020-09-05 13:19:19 +02:00
parent e30b2c6af6
commit 2f90f2faba
3 changed files with 24 additions and 18 deletions

View File

@ -138,7 +138,8 @@ static u8 check_if_text(struct queue_entry *q) {
}
// non-overlong 2-byte
if (len - offset > 1 && ((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) &&
if (len - offset > 1 &&
((0xC2 <= buf[offset + 0] && buf[offset + 0] <= 0xDF) &&
(0x80 <= buf[offset + 1] && buf[offset + 1] <= 0xBF))) {
offset += 2;