summaryrefslogtreecommitdiff
path: root/libparted
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2020-11-09 15:09:07 -0800
committerBrian C. Lane <bcl@redhat.com>2020-11-20 14:00:58 -0800
commit1ff56b03ec960435d55e200300093581ba874d53 (patch)
tree639934aef8cff8cdb7ad09c102b11a8f4c0e2dda /libparted
parentb11bbb5a0b5c357816bff424c2a325806d60f20b (diff)
downloadparted-1ff56b03ec960435d55e200300093581ba874d53.tar.gz
dos: Fix gcc complaints when using boot_code pointer
Diffstat (limited to 'libparted')
-rw-r--r--libparted/labels/dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c
index d859b33..bfa253b 100644
--- a/libparted/labels/dos.c
+++ b/libparted/labels/dos.c
@@ -1291,7 +1291,7 @@ msdos_write (const PedDisk* disk)
DosRawTable *table = (DosRawTable *) s0;
if (!table->boot_code[0]) {
- memset (table->boot_code, 0, 512);
+ memset (table, 0, 512);
memcpy (table->boot_code, MBR_BOOT_CODE, sizeof (MBR_BOOT_CODE));
}