summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-26 00:52:10 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-26 00:52:10 +0000
commit885011d595fa74b0e850db593f53351a6210779e (patch)
treee3ddac84efabd03326497d10837574c805edcaad /games-fps
parentupdate copyright (diff)
downloadhistorical-885011d595fa74b0e850db593f53351a6210779e.tar.gz
historical-885011d595fa74b0e850db593f53351a6210779e.tar.bz2
historical-885011d595fa74b0e850db593f53351a6210779e.zip
increase buffer size in printf func #134266 by Denilson
Package-Manager: portage-2.1_rc2-r1
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/nprquake-sdl/files/1-gentoo.patch31
-rw-r--r--games-fps/quake1/files/fix-sys_printf.patch12
2 files changed, 25 insertions, 18 deletions
diff --git a/games-fps/nprquake-sdl/files/1-gentoo.patch b/games-fps/nprquake-sdl/files/1-gentoo.patch
index 35b206e69300..6d45b15c6b75 100644
--- a/games-fps/nprquake-sdl/files/1-gentoo.patch
+++ b/games-fps/nprquake-sdl/files/1-gentoo.patch
@@ -1,15 +1,13 @@
-diff -ur NPRQuake-SDL.orig/Makefile NPRQuake-SDL/Makefile
---- NPRQuake-SDL.orig/Makefile 2003-09-28 20:09:29.010852408 -0400
-+++ NPRQuake-SDL/Makefile 2003-09-28 20:09:29.521774736 -0400
+--- NPRQuake-SDL/Makefile
++++ NPRQuake-SDL/Makefile
@@ -1,4 +1,4 @@
-RELEASE_CFLAGS=-Dstricmp=strcasecmp -mcpu=i586 -march=i586 -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
+RELEASE_CFLAGS=-Dstricmp=strcasecmp $(OPTFLAGS) -DGENTOO_LIBDIR='\"$(GENTOO_LIBDIR)\"' -DGENTOO_DATADIR='\"$(GENTOO_DATADIR)\"'
DEBUG_CFLAGS=-Dstricmp=strcasecmp -g
-diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/Makefile NPRQuake-SDL/NPRQuakeSrc/Makefile
---- NPRQuake-SDL.orig/NPRQuakeSrc/Makefile 2003-09-28 20:09:29.065844048 -0400
-+++ NPRQuake-SDL/NPRQuakeSrc/Makefile 2003-09-28 20:09:43.153702368 -0400
+--- NPRQuake-SDL/NPRQuakeSrc/Makefile
++++ NPRQuake-SDL/NPRQuakeSrc/Makefile
@@ -29,7 +29,7 @@
CC=gcc
@@ -28,9 +26,8 @@ diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/Makefile NPRQuake-SDL/NPRQuakeSrc/Makefil
$(BUILDDIR)/glquake/console.o : console.c
$(DO_GL_CC)
-diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/common.c NPRQuake-SDL/NPRQuakeSrc/common.c
---- NPRQuake-SDL.orig/NPRQuakeSrc/common.c 2003-09-28 20:09:29.140832648 -0400
-+++ NPRQuake-SDL/NPRQuakeSrc/common.c 2003-09-28 20:09:29.525774128 -0400
+--- NPRQuake-SDL/NPRQuakeSrc/common.c
++++ NPRQuake-SDL/NPRQuakeSrc/common.c
@@ -1775,11 +1775,16 @@
// start up with GAMENAME by default (id1)
//
@@ -58,9 +55,8 @@ diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/common.c NPRQuake-SDL/NPRQuakeSrc/common.
}
//
-diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/gl_rmisc.c NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c
---- NPRQuake-SDL.orig/NPRQuakeSrc/gl_rmisc.c 2003-09-28 20:09:29.139832800 -0400
-+++ NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c 2003-09-28 20:09:29.529773520 -0400
+--- NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c
++++ NPRQuake-SDL/NPRQuakeSrc/gl_rmisc.c
@@ -563,13 +563,15 @@
// this should be as big as the number of functions we pull out.
@@ -78,3 +74,14 @@ diff -ur NPRQuake-SDL.orig/NPRQuakeSrc/gl_rmisc.c NPRQuake-SDL/NPRQuakeSrc/gl_rm
#endif
if( hnewlib == NULL ) {
+--- NPRQuake-SDL/NPRQuakeSrc/sys_linux.c
++++ NPRQuake-SDL/NPRQuakeSrc/sys_linux.c
+@@ -86,7 +86,7 @@
+ void Sys_Printf (char *fmt, ...)
+ {
+ va_list argptr;
+- char text[2048];
++ char text[4096];
+ unsigned char *p;
+
+ va_start (argptr,fmt);
diff --git a/games-fps/quake1/files/fix-sys_printf.patch b/games-fps/quake1/files/fix-sys_printf.patch
index 5b8e468ed521..a36b2add0df2 100644
--- a/games-fps/quake1/files/fix-sys_printf.patch
+++ b/games-fps/quake1/files/fix-sys_printf.patch
@@ -1,22 +1,22 @@
---- WinQuake/sys_linux.c.orig 2003-08-03 02:54:02.900882698 -0400
-+++ WinQuake/sys_linux.c 2003-08-03 02:54:24.568968240 -0400
+--- WinQuake/sys_linux.c
++++ WinQuake/sys_linux.c
@@ -86,7 +86,7 @@
void Sys_Printf (char *fmt, ...)
{
va_list argptr;
- char text[1024];
-+ char text[2048];
++ char text[4096];
unsigned char *p;
va_start (argptr,fmt);
---- QW/client/sys_linux.c.orig 2003-08-03 02:53:55.186276383 -0400
-+++ QW/client/sys_linux.c 2003-08-03 02:54:18.706027413 -0400
+--- QW/client/sys_linux.c
++++ QW/client/sys_linux.c
@@ -141,7 +141,7 @@
void Sys_Error (char *error, ...)
{
va_list argptr;
- char string[1024];
-+ char string[2048];
++ char string[4096];
// change stdin to non blocking
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);