-/* $OpenBSD: fdisk.c,v 1.137 2021/09/26 13:13:16 krw Exp $ */
+/* $OpenBSD: fdisk.c,v 1.138 2021/09/29 22:55:40 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
*ptype++ = '\0';
}
- blockcount = strtonum(arg, BLOCKALIGNMENT, UINT32_MAX, &errstr);
+ blockcount = strtonum(arg, 1, UINT32_MAX, &errstr);
if (errstr)
- errx(1, "Block argument %s [%u..%u].", errstr, BLOCKALIGNMENT,
- UINT32_MAX);
+ errx(1, "Block argument %s [%u..%u].", errstr, 1, UINT32_MAX);
if (poffset == NULL)
goto done;
/* Second number: # of 512-byte blocks to offset partition start. */
- blockoffset = strtonum(poffset, BLOCKALIGNMENT, UINT32_MAX, &errstr);
+ blockoffset = strtonum(poffset, 1, UINT32_MAX, &errstr);
if (errstr)
- errx(1, "Block offset argument %s [%u..%u].", errstr,
- BLOCKALIGNMENT, UINT32_MAX);
+ errx(1, "Block offset argument %s [%u..%u].", errstr, 1,
+ UINT32_MAX);
if (ptype == NULL)
goto done;