diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 06:07:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-30 06:07:32 +0000 |
commit | 92236e97fe0dc0c0b7d8d5385a2a2d4b4c490fc8 (patch) | |
tree | 6908bec82f2ca64c8c6b362c76287df64ddf4051 /games-action/0verkill | |
parent | quake2-relnev is now quake2-icculus (diff) | |
download | gentoo-2-92236e97fe0dc0c0b7d8d5385a2a2d4b4c490fc8.tar.gz gentoo-2-92236e97fe0dc0c0b7d8d5385a2a2d4b4c490fc8.tar.bz2 gentoo-2-92236e97fe0dc0c0b7d8d5385a2a2d4b4c490fc8.zip |
HOME overflow patch #33701
Diffstat (limited to 'games-action/0verkill')
-rw-r--r-- | games-action/0verkill/0verkill-0.16-r1.ebuild (renamed from games-action/0verkill/0verkill-0.16.ebuild) | 3 | ||||
-rw-r--r-- | games-action/0verkill/ChangeLog | 11 | ||||
-rw-r--r-- | games-action/0verkill/files/0.16-home-overflow.patch | 26 | ||||
-rw-r--r-- | games-action/0verkill/files/digest-0verkill-0.16-r1 (renamed from games-action/0verkill/files/digest-0verkill-0.16) | 0 |
4 files changed, 36 insertions, 4 deletions
diff --git a/games-action/0verkill/0verkill-0.16.ebuild b/games-action/0verkill/0verkill-0.16-r1.ebuild index f96c07a1052e..bf27f7ff0db2 100644 --- a/games-action/0verkill/0verkill-0.16.ebuild +++ b/games-action/0verkill/0verkill-0.16-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/0verkill-0.16.ebuild,v 1.3 2003/11/10 14:04:03 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/0verkill-0.16-r1.ebuild,v 1.1 2003/11/30 06:07:32 vapier Exp $ inherit games eutils @@ -21,6 +21,7 @@ src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}-docs.patch + epatch ${FILESDIR}/${PV}-home-overflow.patch sed -i "s:data/:${GAMES_DATADIR}/${PN}/data/:" cfg.h sed -i "s:grx/:${GAMES_DATADIR}/${PN}/grx/:" data/* } diff --git a/games-action/0verkill/ChangeLog b/games-action/0verkill/ChangeLog index a154599d22b7..2b9e3c67a44d 100644 --- a/games-action/0verkill/ChangeLog +++ b/games-action/0verkill/ChangeLog @@ -1,11 +1,16 @@ # ChangeLog for games-action/0verkill # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/ChangeLog,v 1.3 2003/10/26 22:07:50 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/ChangeLog,v 1.4 2003/11/30 06:07:32 vapier Exp $ - 26 Oct 2003; David Holm <dholm@gentoo.org> 0verkill-0.16.ebuild: - Added to ~ppc. +*0verkill-0.16-r1 (30 Nov 2003) + + 30 Nov 2003; Mike Frysinger <vapier@gentoo.org> : + Added HOME overflow patch #33701. *0verkill-0.16 (11 Jul 2003) + 26 Oct 2003; David Holm <dholm@gentoo.org> 0verkill-0.16.ebuild: + Added to ~ppc. + 11 Jul 2003; Mike Frysinger <vapier@gentoo.org> : Initial import. Ebuild submitted by Henrik Johansson <henrik_johansson@home.se> #17639. diff --git a/games-action/0verkill/files/0.16-home-overflow.patch b/games-action/0verkill/files/0.16-home-overflow.patch new file mode 100644 index 000000000000..ec9b7efb36e7 --- /dev/null +++ b/games-action/0verkill/files/0.16-home-overflow.patch @@ -0,0 +1,26 @@ +--- client.c.orig 2001-12-16 04:26:38.000000000 -0500 ++++ client.c 2003-11-17 15:12:52.850772508 -0500 +@@ -191,9 +191,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"r"); + if (!stream)return; +@@ -223,9 +223,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"w"); + if (!stream)return; diff --git a/games-action/0verkill/files/digest-0verkill-0.16 b/games-action/0verkill/files/digest-0verkill-0.16-r1 index d7375b8806ba..d7375b8806ba 100644 --- a/games-action/0verkill/files/digest-0verkill-0.16 +++ b/games-action/0verkill/files/digest-0verkill-0.16-r1 |