X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkdump.c;h=a3d39018014eaf6347a7ac0de4a1248d0af53790;hb=886253fb90810e512cacf4f02694645ead7a22e0;hp=ddedacdb4f6c0cb21d6a6c414d716872a13706d0;hpb=3c5f6226f97612c0d6ac40591f600587c5ffa858;p=idzebra-moved-to-github.git diff --git a/index/kdump.c b/index/kdump.c index ddedacd..a3d3901 100644 --- a/index/kdump.c +++ b/index/kdump.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: kdump.c,v $ - * Revision 1.17 1999-02-02 14:50:55 adam + * Revision 1.19 2000-12-05 10:01:44 adam + * Fixed bug regarding user-defined attribute sets. + * + * Revision 1.18 1999/09/07 07:19:21 adam + * Work on character mapping. Implemented replace rules. + * + * Revision 1.17 1999/02/02 14:50:55 adam * Updated WIN32 code specific sections. Changed header. * * Revision 1.16 1998/05/20 10:12:17 adam @@ -160,7 +166,7 @@ int main (int argc, char **argv) } else if (ret == 'v') { - log_init (log_mask_str(arg), prog, NULL); + yaz_log_init (yaz_log_mask_str(arg), prog, NULL); } else if (ret == 'c') { @@ -207,8 +213,11 @@ int main (int argc, char **argv) while (*from) { const char *res = zebra_maps_output (zm, reg_type, &from); - while (*res) - *(to++) = *(res++); + if (!res) + *to++ = *from++; + else + while (*res) + *to++ = *res++; } *to = '\0'; printf ("%c %3d %c %7d %5d %s\n", reg_type, usedb_type, op ? 'i':'d',