Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/join Fix another off-by-one error, attempting to out...
details: https://anonhg.NetBSD.org/src/rev/0df34b6ffb5f
branches: trunk
changeset: 487654:0df34b6ffb5f
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sat Jun 10 19:21:05 2000 +0000
description:
Fix another off-by-one error, attempting to output a non-existant field.
diffstat:
usr.bin/join/join.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7161c18b9384 -r 0df34b6ffb5f usr.bin/join/join.c
--- a/usr.bin/join/join.c Sat Jun 10 19:15:15 2000 +0000
+++ b/usr.bin/join/join.c Sat Jun 10 19:21:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: join.c,v 1.18 2000/06/10 19:15:15 mycroft Exp $ */
+/* $NetBSD: join.c,v 1.19 2000/06/10 19:21:05 mycroft Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -48,7 +48,7 @@
#if 0
static char sccsid[] = "from: @(#)join.c 5.1 (Berkeley) 11/18/91";
#else
-__RCSID("$NetBSD: join.c,v 1.18 2000/06/10 19:15:15 mycroft Exp $");
+__RCSID("$NetBSD: join.c,v 1.19 2000/06/10 19:21:05 mycroft Exp $");
#endif
#endif /* not lint */
@@ -484,7 +484,7 @@
if (needsep++)
(void)printf("%c", *tabchar);
if (!ferror(stdout)) {
- if (lp->fieldcnt < fieldno) {
+ if (lp->fieldcnt <= fieldno) {
if (empty != NULL)
(void)printf("%s", empty);
} else {
Home |
Main Index |
Thread Index |
Old Index