Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37038352
en ru br
ALT Linux repositórios
S:1.5.9-alt3

Group :: Jogos/Arcade
RPM: hexen2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: hexen-MAX_OSPATH.patch
Download


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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009