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:
Ian Dowse 2001-12-30 18:51:51 +00:00
parent 734b6a9ee0
commit 881c9063c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88714

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