X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarc_read_line.c;h=eefeb84f0ce6bdc7ca8282d24346c7ea437acfea;hp=efbae74969d6ec1406260a765fb43120fe0fd4a5;hb=23b8fd79b9b42dd8655bcd2e0af8a3905348f059;hpb=abf8266c39394f5d3b182cfba09c4b3f64584e4a diff --git a/src/marc_read_line.c b/src/marc_read_line.c index efbae74..eefeb84 100644 --- a/src/marc_read_line.c +++ b/src/marc_read_line.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -144,7 +144,7 @@ int yaz_marc_read_line(yaz_marc_t mt, &length_implementation); header_created = 1; } - else if (line_len > 5 && line[0] != ' ' && line[1] != ' ' + else if (line_len > 4 && line[0] != ' ' && line[1] != ' ' && line[2] != ' ' && line[3] == ' ' ) { /* deal with data/control lines: 245 12 ........ */