Fix off-by-one error.

MFC after:	1 week
This commit is contained in:
nyan 2008-07-01 11:18:51 +00:00
parent 72aa24167a
commit 0e0dca6452

View File

@ -472,7 +472,7 @@ parse()
dsk.slice = WHOLE_DISK_SLICE;
if (arg[1] == ',') {
dsk.slice = *arg - '0' + 1;
if (dsk.slice > NDOSPART)
if (dsk.slice > NDOSPART + 1)
return -1;
arg += 2;
}