summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch')
-rw-r--r--games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch b/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch
new file mode 100644
index 000000000000..d62abcaf480a
--- /dev/null
+++ b/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch
@@ -0,0 +1,22 @@
+Index: code/tools/asm/cmdlib.c
+===================================================================
+--- code/tools/asm/cmdlib.c (revision 1098)
++++ code/tools/asm/cmdlib.c (revision 1099)
+@@ -312,7 +312,7 @@ char *ExpandArg (const char *path)
+ char *ExpandPath (const char *path)
+ {
+ static char full[1024];
+- if (!qdir)
++ if (!qdir[0])
+ Error ("ExpandPath called without qdir set");
+ if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
+ strcpy( full, path );
+@@ -325,7 +325,7 @@ char *ExpandPath (const char *path)
+ char *ExpandGamePath (const char *path)
+ {
+ static char full[1024];
+- if (!qdir)
++ if (!qdir[0])
+ Error ("ExpandGamePath called without qdir set");
+ if (path[0] == '/' || path[0] == '\\' || path[1] == ':') {
+ strcpy( full, path );