aboutsummaryrefslogtreecommitdiff
path: root/games/openbor/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-12-20 02:01:06 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-12-20 02:01:06 +0000
commit5e746a7110e36a10b2e1e6d29b86bd4a55272fb4 (patch)
treee2500d979b1b6ec662279f24aab5ef5da96644e5 /games/openbor/files
parentbcb6acc12414d78bfbe2fb03c5aa556545ce048f (diff)
downloadports-5e746a7110e36a10b2e1e6d29b86bd4a55272fb4.tar.gz
ports-5e746a7110e36a10b2e1e6d29b86bd4a55272fb4.zip
games/openbor: unbreak patching
Notes
Notes: svn path=/head/; revision=428971
Diffstat (limited to 'games/openbor/files')
-rw-r--r--games/openbor/files/patch-openbor.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/games/openbor/files/patch-openbor.c b/games/openbor/files/patch-openbor.c
index 4f1f134acf0b..9063c2076c37 100644
--- a/games/openbor/files/patch-openbor.c
+++ b/games/openbor/files/patch-openbor.c
@@ -1,23 +1,23 @@
--- 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);
+ 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);
+ 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);
@@ -20480,7 +20480,7 @@ void common_dot()
entity *eOpp; //Owner of dot effect.
s_collision_attack attack; //Attack struct.
@@ -30,7 +30,7 @@
@@ -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_SCREENSHOT], "Screenshot", 16);
- strncpy(buttonnames[SDID_ESC], "Exit", 16);
+// strncpy(buttonnames[SDID_ESC], "Exit", 16);