diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-12-19 21:54:26 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-12-19 21:54:26 +0000 |
commit | 3dea606a45e8c38d0d271b8124d33b346df8a136 (patch) | |
tree | 904667e511d101ede3054513dfb19fc84e572028 /games/openbor/files | |
parent | 976abf2c480b13860e641a0331beff48104ccac8 (diff) | |
download | ports-3dea606a45e8c38d0d271b8124d33b346df8a136.tar.gz ports-3dea606a45e8c38d0d271b8124d33b346df8a136.zip |
Notes
Diffstat (limited to 'games/openbor/files')
-rw-r--r-- | games/openbor/files/patch-openbor.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games/openbor/files/patch-openbor.c b/games/openbor/files/patch-openbor.c new file mode 100644 index 000000000000..d3af726c1212 --- /dev/null +++ b/games/openbor/files/patch-openbor.c @@ -0,0 +1,29 @@ +--- openbor.c.orig 2016-12-19 15:29:57 UTC ++++ openbor.c +@@ -5810,7 +5810,7 @@ s_collision_attack **collision_alloc_att + size_t alloc_size;
+
+ // Get amount of memory we'll need.
+- alloc_size = sizeof(*result);
++ alloc_size = max_collisons * sizeof(*result);
+
+ // Allocate memory and get pointer.
+ result = malloc(alloc_size);
+@@ -5859,7 +5859,7 @@ s_collision_body **collision_alloc_body_ + size_t alloc_size;
+
+ // Get amount of memory we'll need.
+- alloc_size = sizeof(*result);
++ alloc_size = max_collisons * sizeof(*result);
+
+ // Allocate memory and get pointer.
+ result = malloc(alloc_size);
+@@ -34617,7 +34617,7 @@ void keyboard_setup(int player) + strncpy(buttonnames[SDID_SPECIAL], "Special", 16); + strncpy(buttonnames[SDID_START], "Start", 16); + strncpy(buttonnames[SDID_SCREENSHOT], "Screenshot", 16);
+- strncpy(buttonnames[SDID_ESC], "Exit", 16); ++// strncpy(buttonnames[SDID_ESC], "Exit", 16); + + savesettings(); + bothnewkeys = 0; |