From c6da5ea38a1dfd3c62eae0e9478f748ffc751a94 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Fri, 23 Jul 1999 23:37:35 +0000 Subject: fieldcnt is the number of fields, not +1... this one was missed in 1995 when the other two were fixed --- usr.bin/join/join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/join') 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 @@ -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 { -- cgit v1.2.3