From: Jim Meyering Date: Fri, 22 Jan 1993 19:41:33 +0000 (+0000) Subject: IS* macros may not be given arguments with side effects. X-Git-Tag: ISDIGIT-bug-fix^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2694667b8df009082bdf526f4c78e3572759e86c;p=thirdparty%2Fcoreutils.git IS* macros may not be given arguments with side effects. --- diff --git a/src/pr.c b/src/pr.c index c49819d806..1abb686bbd 100644 --- a/src/pr.c +++ b/src/pr.c @@ -455,7 +455,8 @@ main (argc, argv) s = optarg; if (*s == '+') { - if (!ISDIGIT (*++s)) + ++s; + if (!ISDIGIT (*s)) usage ("`+' requires a numeric argument"); first_page_number = atoi (s); }