From edbde31bf017867ac5cc3951f6cabdbc43f1f7ee Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 17 May 2013 14:40:40 +0200 Subject: [PATCH] marcmap: fix type for ch in use of getc getc returns EOF (usually -1) on EOF, so we must be sure to use a type that can hold it. --- src/marcmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marcmap.c b/src/marcmap.c index fd9b1be..42491e2 100644 --- a/src/marcmap.c +++ b/src/marcmap.c @@ -42,7 +42,7 @@ struct marcmap *marcmap_load(const char *filename, NMEM nmem) struct marcmap *mm; struct marcmap *mmhead; FILE *fp; - char c; + int c; char buf[256]; int len; int field; -- 1.7.10.4