X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fmarcdump.c;h=e1e9e9a87a7a1461f0dab5c5c9d26d444a5c07a1;hb=5c03aa670c7420063f751a66e200987ea4bf40eb;hp=023de27b651d2b3cf728079625a487badd5549ec;hpb=8c0d9ab51d716e170e6185dbfeb9462d91fb1a06;p=yaz-moved-to-github.git diff --git a/util/marcdump.c b/util/marcdump.c index 023de27..e1e9e9a 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. + * Copyright (c) 1995, Index Data + * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: marcdump.c,v $ - * Revision 1.2 1995-05-15 11:56:56 quinn + * Revision 1.4 1995-11-01 13:55:05 quinn + * Minor adjustments + * + * Revision 1.3 1995/05/16 08:51:12 quinn + * License, documentation, and memory fixes + * + * Revision 1.2 1995/05/15 11:56:56 quinn * Debuggng & adjustments. * * Revision 1.1 1995/04/10 10:28:47 quinn @@ -16,7 +22,7 @@ #include #include #include -#include +#include #ifndef SEEK_SET #define SEEK_SET 0 @@ -57,10 +63,10 @@ int main (int argc, char **argv) *argv, argv[1], strerror (errno)); exit (1); } - buf = malloc (file_size); + buf = xmalloc (file_size); if (!buf) { - fprintf (stderr, "%s: cannot malloc: %s\n", + fprintf (stderr, "%s: cannot xmalloc: %s\n", *argv, strerror (errno)); exit (1); }