7fd79c
From 1f1382ab8672b9bb679ecc7e79583fd826908f6f Mon Sep 17 00:00:00 2001
7fd79c
From: "Brian C. Lane" <bcl@redhat.com>
7fd79c
Date: Mon, 1 May 2017 17:04:11 -0700
7fd79c
Subject: [PATCH 69/75] Fix crash when localized
7fd79c
7fd79c
The _() macro is only for translating string literals.  It was
7fd79c
incorrectly applied to a runtime string representing the name
7fd79c
of a partition and this sometimes caused a gettext crash.
7fd79c
---
7fd79c
 parted/parted.c | 2 +-
7fd79c
 1 file changed, 1 insertion(+), 1 deletion(-)
7fd79c
7fd79c
diff --git a/parted/parted.c b/parted/parted.c
7fd79c
index bd848c3..f767bec 100644
7fd79c
--- a/parted/parted.c
7fd79c
+++ b/parted/parted.c
7fd79c
@@ -1276,7 +1276,7 @@ do_print (PedDevice** dev, PedDisk** diskp)
7fd79c
                         putchar (':');
7fd79c
 
7fd79c
                     if (has_name)
7fd79c
-                        printf ("%s:", _(ped_partition_get_name (part)));
7fd79c
+                        printf ("%s:", ped_partition_get_name (part));
7fd79c
                     else
7fd79c
                         putchar (':');
7fd79c
 
7fd79c
-- 
7fd79c
2.9.3
7fd79c