Unbreak r1.11 by delhij. Blind change from unsigned to signed char

pointer causes problems with sign extension and leads to compress(1)
dumping core on any non-trivial incoming data.
This commit is contained in:
Alexander Kabaev 2005-05-18 05:24:08 +00:00
parent 3f54cc0505
commit 39be1552ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146336

View File

@ -241,7 +241,7 @@ zwrite(void *cookie, const char *wbp, int num)
code_int i;
int c, disp;
struct s_zstate *zs;
const char *bp;
const u_char *bp;
u_char tmp;
int count;
@ -250,7 +250,7 @@ zwrite(void *cookie, const char *wbp, int num)
zs = cookie;
count = num;
bp = wbp;
bp = (const u_char *)wbp;
if (state == S_MIDDLE)
goto middle;
state = S_MIDDLE;