Omit CVS Id. Update copyright year.
[idzebra-moved-to-github.git] / index / marcread.c
index 78c7d82..52b59e8 100644 (file)
@@ -1,8 +1,5 @@
-/* $Id: marcread.c,v 1.8 2007-03-19 21:50:39 adam Exp $
-   Copyright (C) 1995-2007
-   Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+   Copyright (C) 1995-2008 Index Data
 
 Zebra is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -772,7 +769,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))