Article View: gnu.utils.bug
Article #1359Re: textutils-1.4: Macro use bug in src/pr.c
From: James Buster
Date: Wed, 27 Jan 1993 03:24
Date: Wed, 27 Jan 1993 03:24
18 lines
1213 bytes
1213 bytes
In article <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp> sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp (Kaz Sasayama) writes: >I found a macro use bug in file src/pr.c of textutils-1.4. The file >src/pr.c has a line: > > if (!ISDIGIT (*++s)) Unfortunately, Mr?/Ms? (I can't tell) Sasayama didn't give a description of the symptoms of this bug. The symptoms are that `pr +N', where N is a decimal integer, will always fail with the message "pr: `+' requires a numeric argument". Changing the above code fragment to: ++s; if (!ISDIGIT (*s)) seems to fix the problem. -- James Buster bitbug@netcom.com
Technical Details
Message-ID:
<1993Jan26.233030.7565@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbugReferences:
<9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbug From: bitbug@netcom.com (James Buster) Newsgroups: gnu.utils.bug Subject: Re: textutils-1.4: Macro use bug in src/pr.c Date: 26 Jan 1993 22:24:27 -0500 Organization: Lynx Real-Time Systems, Inc. Lines: 19 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-utils@prep.ai.mit.edu Distribution: gnu Message-ID: <1993Jan26.233030.7565@netcom.com> References: <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp>