From ca7199ffd87ae62358f1cbd08a9ad70d5028227c Mon Sep 17 00:00:00 2001 From: kris Date: Sat, 4 Dec 1999 03:19:15 +0000 Subject: The -s option was broken (missing braces around an else clause). Noticed by: Thomas Stromberg Obtained from: OpenBSD --- usr.bin/pr/pr.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index d01728a..850ecda 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -1709,12 +1709,14 @@ setup(argc, argv) ++sflag; if (eoptarg == NULL) schar = SCHAR; - else + else { schar = *eoptarg++; - if (*eoptarg != '\0') { - (void)fprintf(err, - "pr: invalid value for -s %s\n", eoptarg); - return(1); + if (*eoptarg != '\0') { + (void)fprintf(err, + "pr: invalid value for -s %s\n", + eoptarg); + return(1); + } } break; case 't': -- cgit v1.1