Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!uunet!rs
From: rs@uunet.UU.NET (Rich Salz)
Newsgroups: comp.sources.unix
Subject: v10i041: Patch for CBW (use int instead of char)
Message-ID: <581@uunet.UU.NET>
Date: Tue, 7-Jul-87 19:23:16 EDT
Article-I.D.: uunet.581
Posted: Tue Jul  7 19:23:16 1987
Date-Received: Fri, 10-Jul-87 06:20:40 EDT
Organization: UUNET Communications Services, Arlington, VA
Lines: 26
Approved: rs@uunet.uu.net

Submitted by:  Rich $alz 
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