summaryrefslogtreecommitdiff
path: root/games-puzzle/tint/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-puzzle/tint/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-puzzle/tint/files')
-rw-r--r--games-puzzle/tint/files/tint-0.03b-ovflfix.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/games-puzzle/tint/files/tint-0.03b-ovflfix.patch b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch
new file mode 100644
index 000000000000..341f027999ce
--- /dev/null
+++ b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch
@@ -0,0 +1,33 @@
+diff -ru tint-0.03b.orig/io.c tint-0.03b/io.c
+--- tint-0.03b.orig/io.c 2001-12-07 10:48:20.000000000 -0500
++++ tint-0.03b/io.c 2010-11-08 13:40:16.786841434 -0500
+@@ -39,7 +39,7 @@
+ #define NUM_COLORS 8
+
+ /* Number of attributes defined in io.h */
+-#define NUM_ATTRS 7
++#define NUM_ATTRS 9
+
+ /* Cursor definitions */
+ #define CURSOR_INVISIBLE 0
+diff -ru tint-0.03b.orig/tint.c tint-0.03b/tint.c
+--- tint-0.03b.orig/tint.c 2005-07-17 07:26:43.000000000 -0400
++++ tint-0.03b/tint.c 2010-11-08 13:40:04.225203170 -0500
+@@ -365,7 +365,7 @@
+ FILE *handle;
+ int i,j;
+ score_t scores[NUMSCORES];
+- char header[strlen (SCORE_HEADER)];
++ char header[strlen(SCORE_HEADER) + 1];
+ if (score == 0) return; /* No need saving this */
+ for (i = 1; i < NUMSCORES; i++)
+ {
+@@ -418,7 +418,7 @@
+ FILE *handle;
+ int i,j,ch;
+ score_t scores[NUMSCORES];
+- char header[strlen (SCORE_HEADER)];
++ char header[strlen(SCORE_HEADER) + 1];
+ time_t tmp = 0;
+ if ((handle = fopen (scorefile,"r")) == NULL)
+ {