text-freetype2: Check for 2 bytes instead of 1

This commit is contained in:
jp9000 2014-08-25 09:14:20 -07:00
parent 07c46ab468
commit ff9c0528b7

View File

@ -400,7 +400,7 @@ void read_from_end(struct ft2_source *srcdata, const char *filename)
}
else {
bytes_read = fread(&value, 2, 1, tmp_file);
if (bytes_read == 1 && value == L'\n')
if (bytes_read == 2 && value == L'\n')
line_breaks++;
}
}