summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-01-14 22:33:53 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-01-14 22:33:53 +0000
commit619d83ed813761cbc180288066ed47941128487c (patch)
treeb91a80d69472c7b3d86870cebab1ff04c7ecb14b /games-puzzle/braincurses/braincurses-0.5b.ebuild
parentarm stable, bug #294958 (diff)
downloadhistorical-619d83ed813761cbc180288066ed47941128487c.tar.gz
historical-619d83ed813761cbc180288066ed47941128487c.tar.bz2
historical-619d83ed813761cbc180288066ed47941128487c.zip
fix buffer overflow (bug #301033)
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'games-puzzle/braincurses/braincurses-0.5b.ebuild')
-rw-r--r--games-puzzle/braincurses/braincurses-0.5b.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/games-puzzle/braincurses/braincurses-0.5b.ebuild b/games-puzzle/braincurses/braincurses-0.5b.ebuild
index c3870f70ab40..1464fcd1db31 100644
--- a/games-puzzle/braincurses/braincurses-0.5b.ebuild
+++ b/games-puzzle/braincurses/braincurses-0.5b.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.7 2009/02/09 15:26:40 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.8 2010/01/14 22:33:53 mr_bones_ Exp $
EAPI=2
inherit eutils games
@@ -19,6 +19,11 @@ DEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-as-needed.patch
+ # fix buffer overflow (bug #301033)
+ sed -i \
+ -e 's/guessLabel\[2/guessLabel[3/' \
+ curses/windows.cpp \
+ || die 'sed failed'
}
src_install() {