X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util-linux%2Ffdisk.c;h=310bd555e9224625fa36b1420ef2abd881339744;hb=6ced427a6debb71967a8b9cebc12e31c08de0f6a;hp=872581ca2a34fd7b3dda15e0f0836e4fd8471da0;hpb=53f21e34a7765c74afab1a8867f4965fb981edb7;p=oweals%2Fbusybox.git diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 872581ca2..310bd555e 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -1,3 +1,4 @@ +/* vi: set sw=4 ts=4: */ /* fdisk.c -- Partition table manipulator for Linux. * * Copyright (C) 1992 A. V. Le Blanc (LeBlanc@mcc.ac.uk) @@ -5161,7 +5162,7 @@ add_partition(int n, int sys) ext_index = n; pen->ext_pointer = p; pe4->offset = extended_offset = start; - pe4->sectorbuffer = xcalloc(1, sector_size); + pe4->sectorbuffer = xzalloc(sector_size); pe4->part_table = pt_offset(pe4->sectorbuffer, 0); pe4->ext_pointer = pe4->part_table + 1; pe4->changed = 1; @@ -5175,7 +5176,7 @@ add_logical(void) if (partitions > 5 || ptes[4].part_table->sys_ind) { struct pte *pe = &ptes[partitions]; - pe->sectorbuffer = xcalloc(1, sector_size); + pe->sectorbuffer = xzalloc(sector_size); pe->part_table = pt_offset(pe->sectorbuffer, 0); pe->ext_pointer = pe->part_table + 1; pe->offset = 0;