X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=data1%2Fd1_marc.c;h=22bb78dbba3ec022a0dc0e17ba274f94e627c84c;hb=1895d4f884802edff2e8b594297bffb0ef80b8bd;hp=e9fb61411dadf3085129b0ce39e15ac9c72937a4;hpb=89d16cf15eda0e4802d18b8ad09bd3653508ebfc;p=idzebra-moved-to-github.git diff --git a/data1/d1_marc.c b/data1/d1_marc.c index e9fb614..22bb78d 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 Index Data + Copyright (C) 1994-2010 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 @@ -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; @@ -477,6 +477,7 @@ char *data1_nodetomarc(data1_handle dh, data1_marctab *p, data1_node *n, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab