* gpgsplit.c (handle_bzip2): Remove two cut and paste typecast errors.

Noted by Stefan Bellon.
This commit is contained in:
David Shaw 2003-12-28 22:48:58 +00:00
parent b3c4ee2d1f
commit f77e485241
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-12-28 David Shaw <dshaw@jabberwocky.com>
* gpgsplit.c (handle_bzip2): Remove two cut and paste typecast
errors. Noted by Stefan Bellon.
2003-12-02 David Shaw <dshaw@jabberwocky.com>
* gpgsplit.c (write_part): Split off decompression code.

View File

@ -476,7 +476,7 @@ handle_bzip2(int algo,FILE *fpin,FILE *fpout)
{
n = bzs.avail_in;
if (!n)
bzs.next_in = (Bytef *) inbuf;
bzs.next_in = inbuf;
count = inbufsize - n;
for (nread=0;
nread < count && (c=getc (fpin)) != EOF;
@ -491,7 +491,7 @@ handle_bzip2(int algo,FILE *fpin,FILE *fpout)
}
bzs.avail_in = n;
}
bzs.next_out = (Bytef *) outbuf;
bzs.next_out = outbuf;
bzs.avail_out = outbufsize;
if (!zinit_done)