summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2019-06-27 12:04:45 +0300
committerSergey Popov <pinkbyte@gentoo.org>2019-06-27 12:06:16 +0300
commit50cec8f14daee72e700390724bc44f7d8e54e985 (patch)
treebfb10113f1b0e5a066e7206eed51744c5fa41579 /games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch
parentwww-client/elinks: alpha stable wrt bug #687724 (diff)
downloadgentoo-50cec8f14daee72e700390724bc44f7d8e54e985.tar.gz
gentoo-50cec8f14daee72e700390724bc44f7d8e54e985.tar.bz2
gentoo-50cec8f14daee72e700390724bc44f7d8e54e985.zip
games-strategy/seven-kingdoms: version bump to 2.15.2
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch')
-rw-r--r--games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch b/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch
new file mode 100644
index 00000000000..9377287a608
--- /dev/null
+++ b/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.2-fortify.patch
@@ -0,0 +1,26 @@
+commit 5f765d8f0ef76c227277c3f9e3162f9deac654db
+Author: Jesse Allen <the3dfxdude@gmail.com>
+Date: Wed Jun 26 18:11:30 2019 -0700
+
+ LocaleRes: Don't use database field to enable transliteration.
+
+diff --git a/src/LocaleRes.cpp b/src/LocaleRes.cpp
+index 5b4300a..88d975f 100644
+--- a/src/LocaleRes.cpp
++++ b/src/LocaleRes.cpp
+@@ -107,10 +107,13 @@ void LocaleRes::init(const char *locale)
+ strcpy(lang, "??");
+ strcpy(codeset, "ISO-8859-1");
+ }
+- strcat(codeset, "//TRANSLIT");
+
+- cd = iconv_open(codeset, "");
++ String tocode(codeset);
++ tocode += "//TRANSLIT";
++ cd = iconv_open(tocode, "");
++
+ cd_latin = iconv_open("ISO-8859-1", "");
++
+ in_buf = mem_add(INIT_BUF_SIZE+1);
+ in_buf_size = INIT_BUF_SIZE;
+ out_buf = mem_add(INIT_BUF_SIZE+1);