Fix off-by-one error.
MFC after: 1 week
This commit is contained in:
parent
72aa24167a
commit
0e0dca6452
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user