aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/openbor/Makefile2
-rw-r--r--games/openbor/distinfo6
-rw-r--r--games/openbor/files/patch-openbor.c33
-rw-r--r--games/openbor/files/patch-sdl_sdlport.c2
-rw-r--r--games/openbor/files/patch-source_ramlib_ram.c2
5 files changed, 36 insertions, 9 deletions
diff --git a/games/openbor/Makefile b/games/openbor/Makefile
index 91d0921a9fb6..20d0446a76c3 100644
--- a/games/openbor/Makefile
+++ b/games/openbor/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= openbor
-PORTVERSION= 3.0.r4419
+PORTVERSION= 3.0.r4420
CATEGORIES= games
MASTER_SITES= LOCAL/jbeich \
https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn
diff --git a/games/openbor/distinfo b/games/openbor/distinfo
index f71171aa2248..ef9e1ca5d7f4 100644
--- a/games/openbor/distinfo
+++ b/games/openbor/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1482411722
-SHA256 (openbor-3.0.r4419.tar.xz) = 275c6b269eaaec1817b195287742441c434dbcc3fe4a05443490a6d4be52f611
-SIZE (openbor-3.0.r4419.tar.xz) = 3941412
+TIMESTAMP = 1482422861
+SHA256 (openbor-3.0.r4420.tar.xz) = 3497b60d2ac4eb7300ba74154b4057e216f289fe202660c9e49ba4d6bdec0985
+SIZE (openbor-3.0.r4420.tar.xz) = 3944364
diff --git a/games/openbor/files/patch-openbor.c b/games/openbor/files/patch-openbor.c
index 4f1f134acf0b..2b9ebf433157 100644
--- a/games/openbor/files/patch-openbor.c
+++ b/games/openbor/files/patch-openbor.c
@@ -1,4 +1,6 @@
---- openbor.c.orig 2016-12-19 15:29:57 UTC
+Fix potential crashes found by ASan/Clang/GCC
+
+--- openbor.c.orig 2016-12-22 13:02:02 UTC
+++ openbor.c
@@ -5810,7 +5810,7 @@ s_collision_attack **collision_alloc_att
size_t alloc_size;
@@ -18,21 +20,42 @@
// Allocate memory and get pointer.
result = malloc(alloc_size);
-@@ -20480,7 +20480,7 @@ void common_dot()
+@@ -13933,7 +13933,7 @@ void generate_basemap(int map_index, flo
+
+ void load_level(char *filename)
+ {
+- char *buf;
++ char *buf = NULL;
+ size_t size, len, sblen;
+ ptrdiff_t pos, oldpos;
+ char *command;
+@@ -15210,6 +15210,11 @@ void bar(int x, int y, int value, int ma
+ return;
+ }
+
++ if (value < 0)
++ {
++ value = 0;
++ }
++
+ if (value > maxvalue)
+ {
+ value = maxvalue;
+@@ -20471,7 +20476,7 @@ void common_dot()
entity *eOpp; //Owner of dot effect.
s_collision_attack attack; //Attack struct.
- for(iIndex = 0; iIndex <= MAX_DOTS; iIndex++) //Loop through all DOT indexes.
-+ for(iIndex = 0; iIndex < MAX_DOTS; iIndex++) //Loop through all DOT indexes.
++ for(iIndex = 0; iIndex < MAX_DOTS; iIndex++) //Loop through all DOT indexes.
{
iDot_time = self->dot_time[iIndex]; //Get expire time.
iDot_cnt = self->dot_cnt[iIndex]; //Get next tick time.
-@@ -34617,7 +34617,7 @@ void keyboard_setup(int player)
+@@ -34607,7 +34612,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);
++ //strncpy(buttonnames[SDID_ESC], "Exit", 16);
savesettings();
bothnewkeys = 0;
diff --git a/games/openbor/files/patch-sdl_sdlport.c b/games/openbor/files/patch-sdl_sdlport.c
index b092c843e344..4e02426b2ffa 100644
--- a/games/openbor/files/patch-sdl_sdlport.c
+++ b/games/openbor/files/patch-sdl_sdlport.c
@@ -1,3 +1,5 @@
+Store settings under ~/.openbor instead of current directory
+
--- sdl/sdlport.c.orig 2013-12-29 14:05:10 UTC
+++ sdl/sdlport.c
@@ -6,6 +6,11 @@
diff --git a/games/openbor/files/patch-source_ramlib_ram.c b/games/openbor/files/patch-source_ramlib_ram.c
index cf80e06758e7..5a32a492ed5c 100644
--- a/games/openbor/files/patch-source_ramlib_ram.c
+++ b/games/openbor/files/patch-source_ramlib_ram.c
@@ -1,3 +1,5 @@
+Implement Linux-like memory stats for BSDs
+
--- source/ramlib/ram.c.orig 2015-04-18 21:21:56 UTC
+++ source/ramlib/ram.c
@@ -25,6 +25,21 @@
gi/freebsd-ports-gnome/commit/converters/osm2pgsql?id=12a218ba04e30431f97703165b51da27b4c89cae'>- Bump PORTREVISION to chase the update of graphics/projwen2012-05-071-1/+1 * - Bump PORTREVISION to chase the update of graphics/geoswen2012-05-071-0/+1 * - Update to r27612amdmi32012-01-252-3/+3 * - Update to r26711amdmi32011-09-263-90/+3 * - (Attempt to) fix after recent graphics/geos updateamdmi32011-06-302-0/+87