projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b00dde0
)
genunifont: fix ftell() error checking
author
David Herrmann
<dh.herrmann@gmail.com>
Fri, 18 Oct 2013 15:55:56 +0000
(17:55 +0200)
committer
David Herrmann
<dh.herrmann@gmail.com>
Fri, 18 Oct 2013 15:56:46 +0000
(17:56 +0200)
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>
src/genunifont.c
patch
|
blob
|
history
diff --git
a/src/genunifont.c
b/src/genunifont.c
index
caedf4a
..
feaa3f4
100644
(file)
--- 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) {