summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-10-18 17:55:56 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2013-10-18 17:56:46 +0200
commit2157b039acffbecd72cd46bef00d37689aadf717 (patch)
treeb3305ee9b3ce60498dc07fda11e5bb16bafc1668 /src
parentb00dde0bc976d8f65b1ae286a4ae754b092a8da6 (diff)
genunifont: fix ftell() error checking
We need to use signed types to actually see errors from ftell(). Fix it by using "long" for status bits now. Reported-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/genunifont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genunifont.c b/src/genunifont.c
index caedf4a..feaa3f4 100644
--- a/src/genunifont.c
+++ b/src/genunifont.c
@@ -119,7 +119,7 @@ static int parse_single_file(FILE *out, FILE *in)
char buf[MAX_DATA_SIZE];
struct unifont_glyph *g, **iter, *list, *last;
int ret, num;
- unsigned long status_max, status_cur;
+ long status_max, status_cur;
unsigned long perc_prev, perc_now;
if (fseek(in, 0, SEEK_END) != 0) {