diff options
Diffstat (limited to 'src/preproc/grn/hdb.cc')
-rw-r--r-- | src/preproc/grn/hdb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preproc/grn/hdb.cc b/src/preproc/grn/hdb.cc index 53f967c6..05788ebf 100644 --- a/src/preproc/grn/hdb.cc +++ b/src/preproc/grn/hdb.cc @@ -90,7 +90,7 @@ DBRead(register FILE *file) SUNFILE = FALSE; elist = DBInit(); - (void) fscanf(file, "%" MAXSTRING_S "s\n", string); + (void) fscanf(file, "%" MAXSTRING_S "s%*s\n", string); if (strcmp(string, "gremlinfile")) { if (strcmp(string, "sungremlinfile")) { error("`%1' is not a gremlin file", gremlinfile); @@ -107,7 +107,7 @@ DBRead(register FILE *file) /* if (fscanf(file,"%" MAXSTRING_S "s\n", string) == EOF) */ /* I changed the scanf format because the element */ /* can have two words (e.g. CURVE SPLINE) */ - if (fscanf(file, "\n%" MAXSTRING_S "[^\n]\n", string) == EOF) { + if (fscanf(file, "\n%" MAXSTRING_S "[^\n]%*s\n", string) == EOF) { error("`%1', error in file format", gremlinfile); return (elist); } |