Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt fix off-by-one error
details: https://anonhg.NetBSD.org/src/rev/fb02a59b5559
branches: trunk
changeset: 325134:fb02a59b5559
user: jnemeth <jnemeth%NetBSD.org@localhost>
date: Sun Dec 08 08:30:01 2013 +0000
description:
fix off-by-one error
diffstat:
sbin/gpt/show.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 0810a7abcecf -r fb02a59b5559 sbin/gpt/show.c
--- a/sbin/gpt/show.c Sun Dec 08 07:41:06 2013 +0000
+++ b/sbin/gpt/show.c Sun Dec 08 08:30:01 2013 +0000
@@ -29,7 +29,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.12 2013/11/30 19:43:53 jnemeth Exp $");
+__RCSID("$NetBSD: show.c,v 1.13 2013/12/08 08:30:01 jnemeth Exp $");
#endif
#include <sys/types.h>
@@ -311,7 +311,7 @@
continue;
}
- if (entry > 1)
+ if (entry > 0)
show_one();
else
show();
Home |
Main Index |
Thread Index |
Old Index