X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoom-bug-641.c;h=49a8589746659804fbcfdf31dde957d09b6a4217;hb=3a54a02da2f546427c4e5fe57f952c97f54437ea;hp=24a4b179dbe60ed058e80eb7bb6f91233185a21a;hpb=3e4f42cf6577901e054a02f2f1fb5c03cef7b3ac;p=yaz-moved-to-github.git diff --git a/zoom/zoom-bug-641.c b/zoom/zoom-bug-641.c index 24a4b17..49a8589 100644 --- a/zoom/zoom-bug-641.c +++ b/zoom/zoom-bug-641.c @@ -1,8 +1,7 @@ -/* $Id: zoom-bug-641.c,v 1.1 2006-09-19 21:15:01 adam Exp $ */ - -/** \file zoom-bug641.c - \brief Program to illustrate bug 641 -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data + * See the file LICENSE for details. + */ #include #include @@ -49,7 +48,7 @@ int main(int argc, char **argv) } size = statbuf.st_size; printf("size=%lu\n", (unsigned long) size); - buf = xmalloc(size+1); + buf = (char *) xmalloc(size+1); while ((n = read(fd, &buf[offset], size)) < size) { if (n < 0) { perror("read");