summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike/wrogue/files/wrogue-0.8.0b-string-allocation.patch')
-rw-r--r--games-roguelike/wrogue/files/wrogue-0.8.0b-string-allocation.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/games-roguelike/wrogue/files/wrogue-0.8.0b-string-allocation.patch b/games-roguelike/wrogue/files/wrogue-0.8.0b-string-allocation.patch
new file mode 100644
index 000000000000..66afe8ea1d7b
--- /dev/null
+++ b/games-roguelike/wrogue/files/wrogue-0.8.0b-string-allocation.patch
@@ -0,0 +1,20 @@
+--- a/src/lib/appdir.c
++++ b/src/lib/appdir.c
+@@ -149,7 +149,7 @@
+ CreateDirectory(UserData, NULL);
+
+ /* Determine app data directory */
+- AppData[0] = '.'; AppData[1] = ADIR_DELIMITER; AppData[2] = '\0';
++ strcpy(AppData, "/usr/share/wrogue/");
+
+ /* Initialize internal data */
+ Handle = INVALID_HANDLE_VALUE;
+@@ -558,7 +558,7 @@
+ }
+
+ /* Determine app data directory */
+- AppData[0] = '.'; AppData[1] = ADIR_DELIMITER; AppData[2] = '\0';
++ strcpy(AppData, "/usr/share/wrogue/");
+
+ /* Initialize internal data */
+ DirectoryStreamValid = ADIR_FALSE;