projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix use of shutdown for WIN32
[yaz-moved-to-github.git]
/
zoom
/
zoom-bug-641.c
diff --git
a/zoom/zoom-bug-641.c
b/zoom/zoom-bug-641.c
index
24a4b17
..
1009a34
100644
(file)
--- a/
zoom/zoom-bug-641.c
+++ b/
zoom/zoom-bug-641.c
@@
-1,4
+1,4
@@
-/* $Id: zoom-bug-641.c,v 1.1 2006-09-19 21:15:01 adam Exp $ */
+/* $Id: zoom-bug-641.c,v 1.3 2007-05-06 20:12:21 adam Exp $ */
/** \file zoom-bug641.c
\brief Program to illustrate bug 641
/** \file zoom-bug641.c
\brief Program to illustrate bug 641
@@
-49,7
+49,7
@@
int main(int argc, char **argv)
}
size = statbuf.st_size;
printf("size=%lu\n", (unsigned long) size);
}
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");
while ((n = read(fd, &buf[offset], size)) < size) {
if (n < 0) {
perror("read");