From 9641621e0fbb1ac4eec857d70203637e89d184ce Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 25 Feb 2005 17:04:45 +0000 Subject: [PATCH] yaz_marc_decode_wrbuf no longer Wrewinds WRBUF --- src/marcdisp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/marcdisp.c b/src/marcdisp.c index edabacd..be233a7 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.17 2005-02-25 09:37:53 adam Exp $ + * $Id: marcdisp.c,v 1.18 2005-02-25 17:04:45 adam Exp $ */ /** @@ -99,18 +99,12 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) || mt->xml == YAZ_MARC_MARCXML || mt->xml == YAZ_MARC_XCHANGE) produce_warnings = 1; - wrbuf_rewind(wr); - record_length = atoi_n (buf, 5); if (record_length < 25) { if (mt->debug) - { - char str[40]; - wrbuf_printf(wr, "\n", record_length); - } return -1; } memcpy(lead, buf, 24); /* se can modify the header for output */ -- 1.7.10.4