Fix off-by-one error when showing the partition range one is able to modify

(from Julian Coleman).
This commit is contained in:
leo 1997-12-20 21:49:30 +00:00
parent 589a5e2c79
commit fb151b6527
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: edlabel.c,v 1.5 1997/09/29 06:20:09 lukem Exp $ */ /* $NetBSD: edlabel.c,v 1.6 1997/12/20 21:49:30 leo Exp $ */
/* /*
* Copyright (c) 1995 Gordon W. Ross * Copyright (c) 1995 Gordon W. Ross
@ -459,7 +459,7 @@ label_modify(dl, dn)
&& !strcmp(dl->d_packname, "fictitious")) && !strcmp(dl->d_packname, "fictitious"))
scsi_fict = 1; scsi_fict = 1;
printf(modify_cmds, 'a' + maxpartitions, printf(modify_cmds, 'a' + maxpartitions - 1,
scsi_fict ? " s : standarize geometry\n" : ""); scsi_fict ? " s : standarize geometry\n" : "");
for (;;) { for (;;) {
printf("edlabel/modify> "); printf("edlabel/modify> ");