From 56c642c621e422931f63457c4d6b1da1762c85a0 Mon Sep 17 00:00:00 2001 From: iedowse Date: Sun, 30 Dec 2001 18:51:51 +0000 Subject: 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 --- sbin/fdisk/fdisk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sbin/fdisk') diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 35d4ee4..eca068d 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -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; } -- cgit v1.1