Module Name: src Committed By: jnemeth Date: Sun Dec 8 08:30:01 UTC 2013
Modified Files: src/sbin/gpt: show.c Log Message: fix off-by-one error To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sbin/gpt/show.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/gpt/show.c diff -u src/sbin/gpt/show.c:1.12 src/sbin/gpt/show.c:1.13 --- src/sbin/gpt/show.c:1.12 Sat Nov 30 19:43:53 2013 +++ src/sbin/gpt/show.c Sun Dec 8 08:30:01 2013 @@ -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 @@ cmd_show(int argc, char *argv[]) continue; } - if (entry > 1) + if (entry > 0) show_one(); else show();