From b5e5a59302ebdab8904b548771ea705790f04b64 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Dec 2003 12:03:54 +0000 Subject: [PATCH] Fix base address for output (Colin MacLean) --- data1/d1_marc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data1/d1_marc.c b/data1/d1_marc.c index ef3d301..cc46e31 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -1,4 +1,4 @@ -/* $Id: d1_marc.c,v 1.5 2003-11-28 23:06:59 adam Exp $ +/* $Id: d1_marc.c,v 1.6 2003-12-17 12:03:54 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -240,7 +240,6 @@ static int nodetomarc(data1_handle dh, memcpy (leader+6, p->implementation_codes, 4); memint (leader+10, p->indicator_length, 1); memint (leader+11, p->identifier_length, 1); - memint (leader+12, base_address, 5); memcpy (leader+17, p->user_systems, 3); memint (leader+20, p->length_data_entry, 1); memint (leader+21, p->length_starting, 1); @@ -322,6 +321,11 @@ static int nodetomarc(data1_handle dh, *buf = (char *)xrealloc(*buf, *size = len); op = *buf; + + /* we know the base address now */ + memint (leader+12, base_address, 5); + + /* copy temp leader to real output buf op */ memcpy (op, leader, 24); memint (op, len, 5); -- 1.7.10.4