Oops, the arguments to a bcopy() were reversed, which broke zeroing
of unused partition entries and later detection of unused entries. Use memcpy to be consistent with the rest of the code, and fix a minor style nit. Submitted by: bde
This commit is contained in:
parent
734b6a9ee0
commit
881c9063c7
@ -666,9 +666,8 @@ dos(partp)
|
||||
int cy, sec;
|
||||
u_int32_t end;
|
||||
|
||||
if (partp->dp_typ == 0 && partp->dp_start == 0 &&
|
||||
partp->dp_size == 0) {
|
||||
bcopy(partp, &mtpart, sizeof(*partp));
|
||||
if (partp->dp_typ == 0 && partp->dp_start == 0 && partp->dp_size == 0) {
|
||||
memcpy(partp, &mtpart, sizeof(*partp));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user