home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / cbw / patch01 < prev    next >
Encoding:
Internet Message Format  |  1987-07-06  |  1.0 KB

  1. Path: uunet!rs
  2. From: rs@uunet.UU.NET (Rich Salz)
  3. Newsgroups: comp.sources.unix
  4. Subject: v10i041: Patch for CBW (use int instead of char)
  5. Message-ID: <581@uunet.UU.NET>
  6. Date: 7 Jul 87 23:23:16 GMT
  7. Organization: UUNET Communications Services, Arlington, VA
  8. Lines: 26
  9. Approved: rs@uunet.uu.net
  10.  
  11. Submitted by:  Rich $alz <rs@uunet.uu.net>
  12. Mod.sources: Volume 10, Number 41
  13. Archive-name: cbw/Patch01
  14.  
  15. In the function doblock, in the file zeecode.c, a "char" is used
  16. to hold the value returned by "getchar"; this is a big no-no, as
  17. out-of-band values like EOF may not fit.
  18.  
  19. This patch was hand-crafted; if it fails, well... you get the idea.
  20.  
  21.     *** zeecode.c.dist    Thu Jul  2 16:31:33 1987
  22.     --- zeecode.c    Sat Jul  4 07:27:03 1987
  23.     ***************
  24.     *** 89,91
  25.     !      char    c;
  26.       
  27.         for (pos = 0 ; pos < BLOCKSIZE ; pos++) {
  28.     --- 89,91 -----
  29.     !     int    c;
  30.       
  31.         for (pos = 0 ; pos < BLOCKSIZE ; pos++) {
  32. -- 
  33.  
  34. Rich $alz            "Anger is an energy"
  35. Cronus Project, BBN Labs    rsalz@pineapple.bbn.com
  36. Moderator, comp.sources.unix    sources@uunet.uu.net
  37.