]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix buffer overrun on current gcc; there may be more of these
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 7 Nov 2008 15:47:15 +0000 (15:47 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 7 Nov 2008 15:47:15 +0000 (15:47 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@125 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/common/cmdlib.h

index 245f7ed04346a91ef8a01cb48388da43f1c5d74c..5fc38cf58706107d090404c3c8780deef47b3146 100644 (file)
@@ -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...