Skip to content

Commit

Permalink
Fix write un raw mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal MALAISE committed Jan 17, 2015
1 parent c5a9b0c commit cc19ffc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lzf/lzf.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ compress_fd (int from, int to)
header[4] = us & 0xff;
len = us + TYPE0_HDR_SIZE;
}
if (raw)
header = &buf2[MAX_HDR_SIZE];
if (raw)
{
header = &buf2[MAX_HDR_SIZE];
len = cs;
}
if (wwrite (to, header, len) == -1)
return -1;
}
Expand Down Expand Up @@ -548,8 +551,6 @@ main (int argc, char *argv[])
}
}

printf ("Compressing\n");

if (mode == compress)
rc = compress_fd (0, 1);
else
Expand Down

0 comments on commit cc19ffc

Please sign in to comment.