aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 886b2695b..0514b8935 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -1342,7 +1342,7 @@ xbsd_write_bootstrap (void)
1342 bcopy (d, &dl, sizeof (struct xbsd_disklabel)); 1342 bcopy (d, &dl, sizeof (struct xbsd_disklabel));
1343 1343
1344 /* The disklabel will be overwritten by 0's from bootxx anyway */ 1344 /* The disklabel will be overwritten by 0's from bootxx anyway */
1345 bzero (d, sizeof (struct xbsd_disklabel)); 1345 memset (d, 0, sizeof (struct xbsd_disklabel));
1346 1346
1347 snprintf (path, sizeof(path), "%s/boot%s", bootdir, dkbasename); 1347 snprintf (path, sizeof(path), "%s/boot%s", bootdir, dkbasename);
1348 if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize], 1348 if (!xbsd_get_bootstrap (path, &disklabelbuffer[xbsd_dlabel.d_secsize],
@@ -1457,7 +1457,7 @@ xbsd_initlabel (struct partition *p, struct xbsd_disklabel *d) {
1457 struct xbsd_partition *pp; 1457 struct xbsd_partition *pp;
1458 1458
1459 get_geometry (); 1459 get_geometry ();
1460 bzero (d, sizeof (struct xbsd_disklabel)); 1460 memset (d, 0, sizeof (struct xbsd_disklabel));
1461 1461
1462 d -> d_magic = BSD_DISKMAGIC; 1462 d -> d_magic = BSD_DISKMAGIC;
1463 1463