From 881c9063c744117a0d3fd31bbe4cdde910f48a6b Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Sun, 30 Dec 2001 18:51:51 +0000 Subject: [PATCH] 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(-) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 35d4ee479344..eca068da482b 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; }