From 1895d4f884802edff2e8b594297bffb0ef80b8bd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 29 Jun 2010 11:24:42 +0200 Subject: [PATCH] Fix bug #3405: Extra data in MARC after conv --- data1/d1_marc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data1/d1_marc.c b/data1/d1_marc.c index 839eee9..22bb78d 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -189,7 +189,7 @@ static void get_data2(data1_node *n, int *len, char *dst, size_t max) } *len += n->u.data.len; } - if (n->which == DATA1N_tag) + if (n->which == DATA1N_tag && *len == 0) n = n->child; else if (n->which == DATA1N_data) n = n->next; -- 1.7.10.4