From d870b21a3ac10989fdf386db1558cbd51ad71b60 Mon Sep 17 00:00:00 2001 From: rpolzer Date: Fri, 7 Nov 2008 15:47:15 +0000 Subject: [PATCH] fix buffer overrun on current gcc; there may be more of these git-svn-id: svn://svn.icculus.org/netradiant/trunk@125 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/common/cmdlib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/quake3/common/cmdlib.h b/tools/quake3/common/cmdlib.h index 245f7ed0..5fc38cf5 100644 --- a/tools/quake3/common/cmdlib.h +++ b/tools/quake3/common/cmdlib.h @@ -53,7 +53,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif +#ifdef PATH_MAX +#define MAX_OS_PATH PATH_MAX +#else #define MAX_OS_PATH 1024 +#endif #define MEM_BLOCKSIZE 4096 // the dec offsetof macro doesnt work very well... -- 2.39.2