Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bug in -cdf junk copy.
  • Loading branch information
madler committed Apr 12, 2019
1 parent 4dcde08 commit ce021e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pigz.c
Expand Up @@ -2780,7 +2780,6 @@ local int get_header(int save) {
}

// see if it's a gzip, zlib, or lzw file
g.form = -1;
g.magic1 = GET();
if (g.in_eof) {
g.magic1 = -1;
Expand All @@ -2795,8 +2794,10 @@ local int get_header(int save) {
g.form = 1;
return 8;
}
if (magic == 0x1f9d) // it's lzw
if (magic == 0x1f9d) { // it's lzw
g.form = -1;
return 257;
}
if (magic == 0x504b) { // it's zip
magic = GET2(); // the rest of the signature
if (g.in_eof)
Expand Down

0 comments on commit ce021e0

Please sign in to comment.