summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2021-05-18 09:08:01 -0500
committerBen Kohler <bkohler@gentoo.org>2021-05-18 09:15:05 -0500
commit209fbd0bc15fe7ff4c8eab6e578677db5628571d (patch)
tree33f49f20439a84ad13197ba0c5205050398865c5 /sys-apps/lshw/files/lshw-02.18b-gettext-array.patch
parentdev-libs/ell: drop old (diff)
downloadgentoo-209fbd0bc15fe7ff4c8eab6e578677db5628571d.tar.gz
gentoo-209fbd0bc15fe7ff4c8eab6e578677db5628571d.tar.bz2
gentoo-209fbd0bc15fe7ff4c8eab6e578677db5628571d.zip
sys-apps/lshw: drop old
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-apps/lshw/files/lshw-02.18b-gettext-array.patch')
-rw-r--r--sys-apps/lshw/files/lshw-02.18b-gettext-array.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/sys-apps/lshw/files/lshw-02.18b-gettext-array.patch b/sys-apps/lshw/files/lshw-02.18b-gettext-array.patch
deleted file mode 100644
index 4aea6420d7c1..000000000000
--- a/sys-apps/lshw/files/lshw-02.18b-gettext-array.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-patch sent upstream
-
-From 1fb7ebed787ec1b73218c1f12cbb71b103433375 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Tue, 14 Mar 2017 22:25:12 -0700
-Subject: [PATCH] fix array access with string translations
-
-The code forgot to rebase the num to 0 before indexing the string array.
-It also provides 5 strings, but was only allowing 4 to be accessed.
----
- src/core/dmi.cc | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/core/dmi.cc b/src/core/dmi.cc
-index 250f48572d54..0db074975f2d 100644
---- a/src/core/dmi.cc
-+++ b/src/core/dmi.cc
-@@ -510,8 +510,8 @@ static const char *dmi_memory_array_location(u8 num)
- };
- if (num <= 0x0A)
- return _(memory_array_location[num]);
-- if (num >= 0xA0 && num < 0xA4)
-- return _(jp_memory_array_location[num]);
-+ if (num >= 0xA0 && num <= 0xA4)
-+ return _(jp_memory_array_location[num - 0xA0]);
- return "";
- }
-
---
-2.12.0
-