From ee3757af27a96aa388b76c8dbcc175c02d91a50e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 4 Jul 2000 08:53:22 +0000 Subject: [PATCH] Fixed bug. --- util/marcdump.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/util/marcdump.c b/util/marcdump.c index 37c9546..9adc585 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: marcdump.c,v $ - * Revision 1.10 2000-02-29 13:44:55 adam + * Revision 1.11 2000-07-04 08:53:22 adam + * Fixed bug. + * + * Revision 1.10 2000/02/29 13:44:55 adam * Check for config.h (currently not generated). * * Revision 1.9 1999/11/30 13:47:12 adam @@ -62,7 +65,7 @@ int main (int argc, char **argv) int verbose = 0; FILE *inf; long file_size; - char *buf; + char *buf, *p; char *prog = *argv; int count = 0; int no = 0; @@ -106,9 +109,9 @@ int main (int argc, char **argv) prog, arg, strerror (errno)); exit (1); } - while ((ret = marc_display_ex (buf, stdout, verbose)) > 0) + for (p = buf; (ret = marc_display_ex (p, stdout, verbose)) > 0;) { - buf += ret; + p += ret; count++; } fclose (inf); -- 1.7.10.4