projects
/
debian
/
gzip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db0e349
)
* gzip.c (get_method): don't assume size_t can be printed with %u
author
Paul R. Eggert
<eggert@cs.ucla.edu>
Mon, 19 Jul 2010 16:42:05 +0000
(09:42 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 19 Jul 2010 16:42:21 +0000
(09:42 -0700)
gzip.c
patch
|
blob
|
history
diff --git
a/gzip.c
b/gzip.c
index 0443e16b55325ed247baac8c0e1274bb515450ae..65f58977be682954edc2919e139293b1245abe13 100644
(file)
--- a/
gzip.c
+++ b/
gzip.c
@@
-1368,7
+1368,7
@@
local int get_method(in)
if ((flags & EXTRA_FIELD) != 0) {
uch lenbuf[2];
-
size_
t len = lenbuf[0] = get_byte ();
+
unsigned in
t len = lenbuf[0] = get_byte ();
len |= (lenbuf[1] = get_byte ()) << 8;
if (verbose) {
fprintf(stderr,"%s: %s: extra field of %u bytes ignored\n",