]> git.pld-linux.org Git - packages/parted.git/blame - 0069-Fix-crash-when-localized.patch
- release 6 (by relup.sh)
[packages/parted.git] / 0069-Fix-crash-when-localized.patch
CommitLineData
c886eb9d
AM
1From 1f1382ab8672b9bb679ecc7e79583fd826908f6f Mon Sep 17 00:00:00 2001
2From: "Brian C. Lane" <bcl@redhat.com>
3Date: Mon, 1 May 2017 17:04:11 -0700
4Subject: [PATCH 69/75] Fix crash when localized
5
6The _() macro is only for translating string literals. It was
7incorrectly applied to a runtime string representing the name
8of a partition and this sometimes caused a gettext crash.
9---
10 parted/parted.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/parted/parted.c b/parted/parted.c
14index 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--
272.9.3
28
This page took 0.078533 seconds and 4 git commands to generate.