summaryrefslogtreecommitdiffstats
path: root/games/race
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-07-21 16:48:56 +0000
committerijliao <ijliao@FreeBSD.org>2002-07-21 16:48:56 +0000
commit822ca745ad67b4240545331c7b498529c87df061 (patch)
tree0429de74733963c616f3d0054d574d88c44c5685 /games/race
parent48a4be4a34b4135109ed0aa9903330f21ef56a8a (diff)
downloadFreeBSD-ports-822ca745ad67b4240545331c7b498529c87df061.zip
FreeBSD-ports-822ca745ad67b4240545331c7b498529c87df061.tar.gz
fix buffer overflow problem
PR: 40832 Submitted by: Edwin Groothuis <edwin@mavetju.org>
Diffstat (limited to 'games/race')
-rw-r--r--games/race/files/patch-textures.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/games/race/files/patch-textures.c b/games/race/files/patch-textures.c
index ca0c148..3f30c7e 100644
--- a/games/race/files/patch-textures.c
+++ b/games/race/files/patch-textures.c
@@ -1,8 +1,11 @@
---- src/textures.c.orig Tue Jul 16 23:50:37 2002
-+++ src/textures.c Tue Jul 16 23:50:46 2002
-@@ -35,7 +35,7 @@
+--- src/textures.c.orig Fri Mar 8 01:44:46 2002
++++ src/textures.c Sun Jul 21 21:14:50 2002
+@@ -33,9 +33,9 @@
+
+ int loadtexture(char *dir, char *file, int filter, int repeat, int id){
SDL_Surface *image;
- char location[6+strlen(dir)+strlen(file)];
+- char location[6+strlen(dir)+strlen(file)];
++ char location[60+strlen(dir)+strlen(file)];
- sprintf(location,"data/%s/%s",dir,file);
+ sprintf(location,"%%DATADIR%%/data/%s/%s",dir,file);
OpenPOWER on IntegriCloud