Blame SOURCES/0069-Fix-crash-when-localized.patch

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