gzip: don't fail when there is exactly one trailing NUL byte
authorDaniel Barkalow <barkalow@iabervon.org>
Sat, 10 Oct 2009 09:35:13 +0000 (11:35 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 10 Oct 2009 09:35:52 +0000 (11:35 +0200)
commit118a107f2d3ae5267b42e1aaac58a8b5ce9d1925
tree25d5d8a23453b5a2962ec194aafccc2bacc9865b
parent1a085b1446a23bead55437a131fade8e26051fe5
gzip: don't fail when there is exactly one trailing NUL byte

* gzip.c (get_method): Require the second byte of magic only if
the first byte was nonzero.
gzip.c