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:
iedowse 2001-12-30 18:51:51 +00:00
parent f4ab29548b
commit 11b6d7a2f9

View File

@ -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;
}