From: rpolzer Date: Fri, 7 Nov 2008 15:47:15 +0000 (+0000) Subject: fix buffer overrun on current gcc; there may be more of these X-Git-Tag: svn-r421~295 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=d870b21a3ac10989fdf386db1558cbd51ad71b60;hp=3027648679138c3d16920211ea5b4b0215a19a8c;p=xonotic%2Fnetradiant.git 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 --- 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...