diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-07-23 23:37:35 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-07-23 23:37:35 +0000 |
commit | c6da5ea38a1dfd3c62eae0e9478f748ffc751a94 (patch) | |
tree | 30e9ed3e6f8ede3ce53988e3b85c89117a47a2f0 /usr.bin/join | |
parent | 0d39ff2729e6d175adc5b89c749b3df9416f0897 (diff) |
fieldcnt is the number of fields, not +1... this one was missed in 1995
when the other two were fixed
Diffstat (limited to 'usr.bin/join')
-rw-r--r-- | usr.bin/join/join.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c index 9e32a834bab..67e7a42271d 100644 --- a/usr.bin/join/join.c +++ b/usr.bin/join/join.c @@ -1,4 +1,4 @@ -/* $Id: join.c,v 1.11 1998/11/16 06:09:12 deraadt Exp $ */ +/* $Id: join.c,v 1.12 1999/07/23 23:37:34 aaron Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -45,7 +45,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95"; */ -static char rcsid[] = "$Id: join.c,v 1.11 1998/11/16 06:09:12 deraadt Exp $"; +static char rcsid[] = "$Id: join.c,v 1.12 1999/07/23 23:37:34 aaron Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -505,7 +505,7 @@ outfield(lp, fieldno, out_empty) if (needsep++) putchar((int)*tabchar); if (!ferror(stdout)) { - if (lp->fieldcnt < fieldno || out_empty) { + if (lp->fieldcnt <= fieldno || out_empty) { if (empty != NULL) fputs(empty, stdout); } else { |