diff options
Diffstat (limited to 'disk-utils/fdisk-list.c')
-rw-r--r-- | disk-utils/fdisk-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdisk-list.c b/disk-utils/fdisk-list.c index e8a059677..6cd582174 100644 --- a/disk-utils/fdisk-list.c +++ b/disk-utils/fdisk-list.c @@ -371,7 +371,7 @@ int *init_fields(struct fdisk_context *cxt, const char *str, size_t *n) if (fdisk_label_get_fields_ids(NULL, cxt, &dflt_ids, &fields_nids)) goto done; - fields_ids = xcalloc(sizeof(int), FDISK_NFIELDS * 2); + fields_ids = xcalloc(FDISK_NFIELDS * 2, sizeof(int)); /* copy defaults to the list with wanted fields */ memcpy(fields_ids, dflt_ids, fields_nids * sizeof(int)); |