Skip to content

Commit

Permalink
Patch to make this whole decompression wrapper stuff working.
Browse files Browse the repository at this point in the history
  • Loading branch information
kratz00 committed Mar 17, 2010
1 parent 7e705c2 commit 25b2e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileio.c
Expand Up @@ -445,7 +445,7 @@ MojoInput *MojoInput_newCompressedStream(MojoInput *origio)
// in a decompressor.
uint8 magic[4];
const int64 br = origio->read(origio, magic, sizeof (magic));
if ((!origio->seek(origio, 0)) || (br != sizeof (magic)))
if ((origio->seek(origio, 0)) && (br == sizeof (magic)))
{
#if SUPPORT_GZIP
if ((magic[0] == 0x1F) && (magic[1] == 0x8B) && (magic[2] == 0x08))
Expand Down

0 comments on commit 25b2e8a

Please sign in to comment.