diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-07-22 00:48:56 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-07-22 00:48:56 +0800 |
commit | 822ca745ad67b4240545331c7b498529c87df061 (patch) | |
tree | 0429de74733963c616f3d0054d574d88c44c5685 /games | |
parent | 48a4be4a34b4135109ed0aa9903330f21ef56a8a (diff) | |
download | freebsd-ports-gnome-822ca745ad67b4240545331c7b498529c87df061.tar.gz freebsd-ports-gnome-822ca745ad67b4240545331c7b498529c87df061.tar.zst freebsd-ports-gnome-822ca745ad67b4240545331c7b498529c87df061.zip |
fix buffer overflow problem
PR: 40832
Submitted by: Edwin Groothuis <edwin@mavetju.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/race/files/patch-textures.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/games/race/files/patch-textures.c b/games/race/files/patch-textures.c index ca0c14805567..3f30c7ec3318 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); |