]>
Commit | Line | Data |
---|---|---|
c886eb9d AM |
1 | From 1f1382ab8672b9bb679ecc7e79583fd826908f6f Mon Sep 17 00:00:00 2001 |
2 | From: "Brian C. Lane" <bcl@redhat.com> | |
3 | Date: Mon, 1 May 2017 17:04:11 -0700 | |
4 | Subject: [PATCH 69/75] Fix crash when localized | |
5 | ||
6 | The _() macro is only for translating string literals. It was | |
7 | incorrectly applied to a runtime string representing the name | |
8 | of a partition and this sometimes caused a gettext crash. | |
9 | --- | |
10 | parted/parted.c | 2 +- | |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
12 | ||
13 | diff --git a/parted/parted.c b/parted/parted.c | |
14 | index bd848c3..f767bec 100644 | |
15 | --- a/parted/parted.c | |
16 | +++ b/parted/parted.c | |
17 | @@ -1276,7 +1276,7 @@ do_print (PedDevice** dev, PedDisk** diskp) | |
18 | putchar (':'); | |
19 | ||
20 | if (has_name) | |
21 | - printf ("%s:", _(ped_partition_get_name (part))); | |
22 | + printf ("%s:", ped_partition_get_name (part)); | |
23 | else | |
24 | putchar (':'); | |
25 | ||
26 | -- | |
27 | 2.9.3 | |
28 |