From 20c02bb3bc03b379c0613cd5ffd998566e81be60 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Tue, 1 Mar 2016 19:37:56 +0100 Subject: [PATCH] fix reading of bytes from file --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index b0dcee0..134ac24 100644 --- a/main.c +++ b/main.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) dcd_v2_t dcd_table; - unsigned char byte = getc(file); + int byte = getc(file); while (byte != EOF) { if (byte != IVT_HEADER_TAG) {