Группа :: Игры/Аркады
Пакет: hexen2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: hexen-MAX_OSPATH.patch
Скачать
Скачать
diff -ur hexen2source-1.4.3.orig/hexen2/quakedef.h hexen2source-1.4.3/hexen2/quakedef.h
--- hexen2source-1.4.3.orig/hexen2/quakedef.h 2010-06-23 07:40:42.000000000 +0000
+++ hexen2source-1.4.3/hexen2/quakedef.h 2010-06-23 08:18:17.328361064 +0000
@@ -7,6 +7,7 @@
#ifndef __QUAKEDEFS_H
#define __QUAKEDEFS_H
+#include <limits.h>
#define __STRINGIFY(x) #x
#define STRINGIFY(x) __STRINGIFY(x)
@@ -23,7 +24,7 @@
#define ENGINE_NAME "Hexen2"
#define MAX_QPATH 64 // max length of a quake game pathname
-#define MAX_OSPATH 256 // max length of a filesystem pathname
+#define MAX_OSPATH PATH_MAX // max length of a filesystem pathname
#define QUAKE_GAME // as opposed to utilities
diff -ur hexen2source-1.4.3.orig/hexenworld/Client/quakedef.h hexen2source-1.4.3/hexenworld/Client/quakedef.h
--- hexen2source-1.4.3.orig/hexenworld/Client/quakedef.h 2010-06-23 07:40:42.000000000 +0000
+++ hexen2source-1.4.3/hexenworld/Client/quakedef.h 2010-06-23 08:17:58.112361235 +0000
@@ -7,6 +7,7 @@
#ifndef __QUAKEDEFS_H
#define __QUAKEDEFS_H
+#include <limits.h>
#define __STRINGIFY(x) #x
#define STRINGIFY(x) __STRINGIFY(x)
@@ -23,7 +24,7 @@
#define ENGINE_NAME "HexenWorld"
#define MAX_QPATH 64 // max length of a quake game pathname
-#define MAX_OSPATH 256 // max length of a filesystem pathname
+#define MAX_OSPATH PATH_MAX // max length of a filesystem pathname
#define QUAKE_GAME // as opposed to utilities
diff -ur hexen2source-1.4.3.orig/hexenworld/Master/defs.h hexen2source-1.4.3/hexenworld/Master/defs.h
--- hexen2source-1.4.3.orig/hexenworld/Master/defs.h 2010-06-23 07:40:42.000000000 +0000
+++ hexen2source-1.4.3/hexenworld/Master/defs.h 2010-06-23 08:17:31.132360778 +0000
@@ -7,6 +7,7 @@
#ifndef __HWMASTER_DEFS
#define __HWMASTER_DEFS
+#include <limits.h>
//=============================================================================
// Defines
@@ -21,7 +22,7 @@
#define HWM_USERDIR ".hwmaster" /* user directory for unix */
-#define MAX_OSPATH 256 /* max length of a filesystem pathname */
+#define MAX_OSPATH PATH_MAX /* max length of a filesystem pathname */
#define MAX_NUM_ARGVS 50
diff -ur hexen2source-1.4.3.orig/launcher/common.h hexen2source-1.4.3/launcher/common.h
--- hexen2source-1.4.3.orig/launcher/common.h 2010-06-23 07:40:42.000000000 +0000
+++ hexen2source-1.4.3/launcher/common.h 2010-06-23 08:13:58.776360858 +0000
@@ -33,8 +33,9 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <limits.h>
-#define MAX_OSPATH 256
+#define MAX_OSPATH PATH_MAX
/* =====================================================================
USE_PASSWORD_FILE, 0 or 1 (main.c)
diff -ur hexen2source-1.4.3.orig/utils/jsh2color/tyrlite.h hexen2source-1.4.3/utils/jsh2color/tyrlite.h
--- hexen2source-1.4.3.orig/utils/jsh2color/tyrlite.h 2010-06-23 07:40:42.000000000 +0000
+++ hexen2source-1.4.3/utils/jsh2color/tyrlite.h 2010-06-23 08:16:48.729361050 +0000
@@ -33,11 +33,12 @@
#define MAXLIGHTS 1024
+#include <limits.h>
// js features
#ifdef _MAX_PATH
#define MAX_OSPATH _MAX_PATH
#else
-#define MAX_OSPATH 256
+#define MAX_OSPATH PATH_MAX
#endif
#define MAX_ENTRYNUM 32784
#define MAX_TEX_NAME 64