X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmarcread.c;h=0a125650d55d4fc101b6b738596bef3e45ba6024;hb=131e8143a9b8da294d582f0793833679101a2672;hp=78c7d82ac5206b81105e43248d348d7d4d7e804b;hpb=3e4a78274a6cb7a99f3e90967ea30c830ffbf8c3;p=idzebra-moved-to-github.git diff --git a/index/marcread.c b/index/marcread.c index 78c7d82..0a12565 100644 --- a/index/marcread.c +++ b/index/marcread.c @@ -1,4 +1,4 @@ -/* $Id: marcread.c,v 1.8 2007-03-19 21:50:39 adam Exp $ +/* $Id: marcread.c,v 1.9 2007-03-19 21:57:25 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -772,7 +772,8 @@ static void parse_data1_tree(struct grs_read_info *p, const char *mc_stmnt, field = cat_field(p, pf, buf, field); - pb = wrbuf_cstr(buf); + wrbuf_cstr(buf); + pb = wrbuf_buf(buf); for (pb = strtok(pb, "\n"); pb; pb = strtok(NULL, "\n")) { if (!is_empty(pb))