rs@uunet.UU.NET (Rich Salz) (07/08/87)
Submitted by: Rich $alz <rs@uunet.uu.net>
Mod.sources: Volume 10, Number 41
Archive-name: cbw/Patch01
In the function doblock, in the file zeecode.c, a "char" is used
to hold the value returned by "getchar"; this is a big no-no, as
out-of-band values like EOF may not fit.
This patch was hand-crafted; if it fails, well... you get the idea.
*** zeecode.c.dist Thu Jul 2 16:31:33 1987
--- zeecode.c Sat Jul 4 07:27:03 1987
***************
*** 89,91
! char c;
for (pos = 0 ; pos < BLOCKSIZE ; pos++) {
--- 89,91 -----
! int c;
for (pos = 0 ; pos < BLOCKSIZE ; pos++) {
--
Rich $alz "Anger is an energy"
Cronus Project, BBN Labs rsalz@pineapple.bbn.com
Moderator, comp.sources.unix sources@uunet.uu.net