home *** CD-ROM | disk | FTP | other *** search
- Path: 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: 7 Jul 87 23:23:16 GMT
- Organization: UUNET Communications Services, Arlington, VA
- Lines: 26
- Approved: rs@uunet.uu.net
-
- 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
-