🐛 Lille bugfix 2.0

This commit is contained in:
Nikolaj
2021-09-16 16:01:42 +02:00
parent 5ba5514314
commit 401d665bc6

View File

@ -24,9 +24,6 @@ bool is_utf8(FILE* f) {
}
byte = byte << 1;
}
if (char_length == -1) {
return false;
}
for (int i = 1 ; i < char_length ; i++) {
if (fread(&byte, 1, 1, f) == 0 || byte >> 6 != 2) {
return false;