From: Adam Dickmeiss Date: Fri, 17 May 2013 12:40:40 +0000 (+0200) Subject: marcmap: fix type for ch in use of getc X-Git-Tag: v1.6.31~18^2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=edbde31bf017867ac5cc3951f6cabdbc43f1f7ee;p=pazpar2-moved-to-github.git 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. --- 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;