home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2495 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!ames!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!zindigo.z-code.COM!bobg
  2. From: bobg@zindigo.z-code.COM (Bob Glickstein)
  3. Newsgroups: gnu.utils.bug
  4. Subject: Patch 2.0 12g8 bug
  5. Date: 26 Jan 1993 22:26:17 -0500
  6. Organization: Z-Code Software Corp., Marin County, CA
  7. Lines: 28
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301261710.ZM5878@zindigo.z-code.com>
  12. Reply-To: Bob Glickstein <bobg@z-code.z-code.com>
  13.  
  14. In get_some_switches() in patch.c, the result of getopt_long() is
  15. assigned to a char, then compared (with `!=') to -1.  This always
  16. succeeds on machines where chars are unsigned.
  17.  
  18. Apply this patch to patch:
  19.  
  20. --- patch.c.orig    Tue Jan 26 17:02:55 1993
  21. +++ patch.c    Tue Jan 26 17:03:41 1993
  22. @@ -474,7 +474,7 @@
  23.  void
  24.  get_some_switches()
  25.  {
  26. -    Reg1 char optc;
  27. +    Reg1 int optc;
  28.  
  29.      rejname[0] = '\0';
  30.      optind_last = optind;
  31.  
  32. Cheers.
  33.  
  34. -- 
  35. Bob Glickstein
  36. Z-Code Software Corp.
  37. 4340 Redwood Highway  Suite B-50
  38. San Rafael, CA  94903
  39. (415) 499-8649
  40.  
  41.  
  42.