]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/cmdlib.h
fix buffer overrun on current gcc; there may be more of these
[xonotic/netradiant.git] / 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...