aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-10-10 09:09:08 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-10-10 09:09:08 +0800
commit0ea1ddf485f0abf16749c3e16e248c0961e8964e (patch)
tree996ec8fa6e4855b276c49c62092609344d5fb09a /games
parent6b00d626d628ecdef3b6477b38aa525a6ff728ea (diff)
downloadfreebsd-ports-gnome-0ea1ddf485f0abf16749c3e16e248c0961e8964e.tar.gz
freebsd-ports-gnome-0ea1ddf485f0abf16749c3e16e248c0961e8964e.tar.zst
freebsd-ports-gnome-0ea1ddf485f0abf16749c3e16e248c0961e8964e.zip
- Fix crash due to unterminated string
- Regenerate patches MFH: 2015Q4 (blanket)
Diffstat (limited to 'games')
-rw-r--r--games/concentration/files/patch-src-concentration.c6
-rw-r--r--games/concentration/files/patch-src_ShiftyEngine.c11
2 files changed, 14 insertions, 3 deletions
diff --git a/games/concentration/files/patch-src-concentration.c b/games/concentration/files/patch-src-concentration.c
index 896799b2a021..0668eeb52e8c 100644
--- a/games/concentration/files/patch-src-concentration.c
+++ b/games/concentration/files/patch-src-concentration.c
@@ -1,6 +1,6 @@
---- src/concentration.c.orig 2005-11-09 19:05:02.000000000 +0300
-+++ src/concentration.c 2013-06-04 07:00:25.084319599 +0400
-@@ -202,7 +202,7 @@
+--- src/concentration.c.orig 2005-11-09 16:05:02 UTC
++++ src/concentration.c
+@@ -202,7 +202,7 @@ char * helpText[] = {
/*****************************************************
****************************************************/
diff --git a/games/concentration/files/patch-src_ShiftyEngine.c b/games/concentration/files/patch-src_ShiftyEngine.c
new file mode 100644
index 000000000000..48d65187cd58
--- /dev/null
+++ b/games/concentration/files/patch-src_ShiftyEngine.c
@@ -0,0 +1,11 @@
+--- src/ShiftyEngine.c.orig 2004-09-21 01:08:59 UTC
++++ src/ShiftyEngine.c
+@@ -93,7 +93,7 @@ void SE_SetBackground(char * name)
+ exit(1);
+ }
+
+- strncpy(backgroundName, name, len);
++ strncpy(backgroundName, name, len + 1);
+ }
+
+ /*****************************************************