From 1c337622df3215bf95bf57d18e6b908e42d1c8fe Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Sat, 20 Jan 1996 07:51:25 +0000 Subject: [PATCH] Rcsdiff incorrectly only allows one -L option to be specified. Submitted by: Niklas Hallqvist via NetBSD-bugs --- gnu/usr.bin/rcs/rcsdiff/rcsdiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c b/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c index 5502de62dc20..9e31541f4554 100644 --- a/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c +++ b/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c @@ -151,7 +151,7 @@ static int exitstatus; static RILE *workptr; static struct stat workstat; -mainProg(rcsdiffId, "rcsdiff", "$Id: rcsdiff.c,v 1.3 1995/10/28 21:50:36 peter Exp $") +mainProg(rcsdiffId, "rcsdiff", "$Id: rcsdiff.c,v 1.4 1995/10/29 22:06:42 peter Exp $") { static char const cmdusage[] = "\nrcsdiff usage: rcsdiff -ksubst -q -rrev1 [-rrev2] -Vn -xsuff -zzone [diff options] file ..."; @@ -215,7 +215,7 @@ mainProg(rcsdiffId, "rcsdiff", "$Id: rcsdiff.c,v 1.3 1995/10/28 21:50:36 peter E /* fall into */ case 'C': case 'F': case 'I': case 'L': case 'W': #if DIFF_L - if (c == 'L' && ++file_labels == 2) + if (c == 'L' && file_labels++ == 2) faterror("too many -L options"); #endif *dcp++ = c;