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

  1. Path: sparky!uunet!stanford.edu!agate!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbug
  2. From: bitbug@netcom.com (James Buster)
  3. Newsgroups: gnu.utils.bug
  4. Subject: Re: textutils-1.4: Macro use bug in src/pr.c
  5. Date: 26 Jan 1993 22:24:27 -0500
  6. Organization: Lynx Real-Time Systems, Inc.
  7. Lines: 19
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1993Jan26.233030.7565@netcom.com>
  12. References: <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp>
  13.  
  14. In article <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp> sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp (Kaz Sasayama) writes:
  15. >I found a macro use bug in file src/pr.c of textutils-1.4.  The file
  16. >src/pr.c has a line:
  17. >
  18. >              if (!ISDIGIT (*++s))
  19.  
  20. Unfortunately, Mr?/Ms? (I can't tell) Sasayama didn't give a description
  21. of the symptoms of this bug. The symptoms are that `pr +N', where N
  22. is a decimal integer, will always fail with the message
  23. "pr: `+' requires a numeric argument".
  24.  
  25. Changing the above code fragment to:
  26.         ++s;
  27.         if (!ISDIGIT (*s))
  28. seems to fix the problem.
  29. -- 
  30.                 James Buster
  31.                  bitbug@netcom.com
  32.  
  33.