diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2023-01-22 19:57:26 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2023-01-22 19:57:26 +0000 |
commit | fd0812045a95559bc6abe9499f0bfcee90d3afbf (patch) | |
tree | 53d9d62a5e21ae2e2625aa4b3fa015224981ff81 /sbin/disklabel/editor.c | |
parent | 245b16b536e1f411a6287472c29ce3dd7d52dfdf (diff) |
Fix incorrect comparison. Restores ability to edit 'p'.
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r-- | sbin/disklabel/editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index cd1a13e8019..dbc73f6a033 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.395 2023/01/21 16:20:25 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.396 2023/01/22 19:57:25 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <millert@openbsd.org> @@ -1059,7 +1059,7 @@ getpartno(const struct disklabel *lp, const char *id, const char *action) goto done; } - if (strlen(p) > 1 || *p < 'a' || *p >= maxpart || *p == 'c') { + if (strlen(p) > 1 || *p < 'a' || *p > maxpart || *p == 'c') { fprintf(stderr, helpfmt, maxpart); goto done; } |