diff options
-rw-r--r-- | sbin/disklabel/editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 86424f85ad5..8708f3d59e4 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.367 2021/03/09 07:03:19 deraadt Exp $ */ +/* $OpenBSD: editor.c,v 1.368 2021/05/30 19:02:30 kettenis Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <millert@openbsd.org> @@ -571,8 +571,8 @@ editor_allocspace(struct disklabel *lp_org) pstart = DL_GETPOFFSET(pp); pend = pstart + psz; if (i != RAW_PART && psz != 0 && - ((pstart >= starting_sector && pstart <= ending_sector) || - (pend > starting_sector && pend < ending_sector))) { + ((pstart >= starting_sector && pstart < ending_sector) || + (pend > starting_sector && pend <= ending_sector))) { overlap = 1; break; } |