projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6358d4f
)
marcmap: fix type for ch in use of getc
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 17 May 2013 12:40:40 +0000
(14:40 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 17 May 2013 12:40:40 +0000
(14:40 +0200)
getc returns EOF (usually -1) on EOF, so we must be sure to
use a type that can hold it.
src/marcmap.c
patch
|
blob
|
history
diff --git
a/src/marcmap.c
b/src/marcmap.c
index
fd9b1be
..
42491e2
100644
(file)
--- 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;