Fix incorrect pointer type in gzip handling

Spotted by Clang.