projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0181660
)
gzip(1): Fix amd64 warning.
author
Sascha Wildner <saw@online.de>
Sat, 16 May 2009 22:44:38 +0000 (
00:44
+0200)
committer
Sascha Wildner <saw@online.de>
Sat, 16 May 2009 22:46:27 +0000 (
00:46
+0200)
usr.bin/gzip/zuncompress.c
patch
|
blob
|
blame
|
history
diff --git
a/usr.bin/gzip/zuncompress.c
b/usr.bin/gzip/zuncompress.c
index
a5b021f
..
f6c3868
100644
(file)
--- a/
usr.bin/gzip/zuncompress.c
+++ b/
usr.bin/gzip/zuncompress.c
@@
-147,7
+147,7
@@
zuncompress(FILE *in, FILE *out, char *pre, size_t prelen,
compressed_pre = NULL;
while ((bin = fread(buf, 1, sizeof(buf), in)) != 0) {
- if (fwrite(buf, 1, bin, out) != bin) {
+ if (fwrite(buf, 1, bin, out) != (size_t)bin) {
free(buf);
return -1;
}