summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-27 17:52:28 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-27 18:14:29 +0200
commit6ed5cb8f8f48a604bd4db58192b30a3cb0813286 (patch)
tree82decd64da562a4b9338ed4b919f91f727afccb5 /games-misc/yadex/files/yadex_170_O2.patch
parentnet-misc/ntp: remove unused patch (diff)
downloadgentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.tar.gz
gentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.tar.bz2
gentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.zip
games-misc/yadex: Lots of fixes from Fedora (#160305)
Package-Manager: Portage-2.3.38, Repoman-2.3.9
Diffstat (limited to 'games-misc/yadex/files/yadex_170_O2.patch')
-rw-r--r--games-misc/yadex/files/yadex_170_O2.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-misc/yadex/files/yadex_170_O2.patch b/games-misc/yadex/files/yadex_170_O2.patch
new file mode 100644
index 000000000000..5ef90ca94253
--- /dev/null
+++ b/games-misc/yadex/files/yadex_170_O2.patch
@@ -0,0 +1,14 @@
+diff -dupr yadex-1.7.901-patched/src/pic2img.cc yadex-1.7.901/src/pic2img.cc
+--- yadex-1.7.901-patched/src/pic2img.cc 2006-11-06 17:35:03.000000000 +0100
++++ yadex-1.7.901/src/pic2img.cc 2015-11-24 09:54:25.578048649 +0100
+@@ -92,9 +92,9 @@ uint8_t *buf; /* This variable is s
+ should be pasted. It can be off the image buffer! */
+
+ // Locate the lump where the picture is
++ MasterDirectory dirbuf;
+ if (picloc.wad != 0)
+ {
+- MasterDirectory dirbuf;
+ dirbuf.wadfile = picloc.wad;
+ dirbuf.dir.start = picloc.ofs;
+ dirbuf.dir.size = picloc.len;