home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mickey.yoshida.nuie.nagoya-u.ac.jp!sasayama
- From: sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp (Kaz Sasayama)
- Newsgroups: gnu.utils.bug
- Subject: textutils-1.4: Macro use bug in src/pr.c
- Date: 21 Jan 1993 18:01:58 -0500
- Organization: GNUs Not Usenet
- Lines: 17
- Sender: daemon@cis.ohio-state.edu
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Distribution: gnu
- Message-ID: <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp>
-
- 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))
-
- in function main, while another file src/system.h defines the macro
- `ISDIGIT' as follows.
-
- #define ISDIGIT(c) (isascii (c) && isdigit (c))
-
- So the pointer `s' is incremented twice if macro `isascii' is defined
- by the system.
- -----
- * Kaz Sasayama <sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp>.
- * Dept. of Information Engineering, School of Engineering, Nagoya
- University.
-
-