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
f4ab29548b
commit
11b6d7a2f9
@ -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