diff options
Diffstat (limited to 'games/glaxium/patches/patch-variables.cpp')
-rw-r--r-- | games/glaxium/patches/patch-variables.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/games/glaxium/patches/patch-variables.cpp b/games/glaxium/patches/patch-variables.cpp new file mode 100644 index 00000000000..32505143775 --- /dev/null +++ b/games/glaxium/patches/patch-variables.cpp @@ -0,0 +1,14 @@ +$NetBSD: patch-variables.cpp,v 1.1 2016/12/12 06:21:47 dholland Exp $ + +Avoid undefined behavior. + +--- variables.cpp~ 2002-10-17 21:53:00.000000000 +0000 ++++ variables.cpp +@@ -453,6 +453,7 @@ char* GlaxiumVariables::getFullOptionsPa + static char strReturn[1024];
+ strcpy(strReturn, getenv("HOME"));
+ strcat(strReturn, "/.glaxiumrc");
++ return strReturn;
+ #endif
+ }
+
|