Explorar o código

text-freetype2: Check for 2 bytes instead of 1

jp9000 %!s(int64=11) %!d(string=hai) anos
pai
achega
ff9c0528b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/text-freetype2/text-functionality.c

+ 1 - 1
plugins/text-freetype2/text-functionality.c

@@ -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++;
 		}
 	}