diff options
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r-- | disk-utils/fdisk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index ed008e703..6883b6c41 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -354,11 +354,12 @@ int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask, struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt) { const char *q; + struct fdisk_label *lb = fdisk_get_label(cxt, NULL); if (!cxt || !cxt->label || !cxt->label->nparttypes) return NULL; - q = fdisk_is_parttype_string(cxt) ? + q = fdisk_label_is_parttype_string(lb) ? _("Partition type (type L to list all types): ") : _("Hex code (type L to list all codes): "); do { |