diff options
| -rw-r--r-- | sbin/fdisk/fdisk.c | 5 |
1 files 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; } |
