summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-11-08 10:34:40 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-11-08 10:34:40 +0000
commit2e4dd731e81344730021912e51b8fd988beeb37b (patch)
tree9542325476f79f8469e29f395861fa9ab4d3435c /games-puzzle/tint/files
parentMove to virtual/jpeg (diff)
downloadhistorical-2e4dd731e81344730021912e51b8fd988beeb37b.tar.gz
historical-2e4dd731e81344730021912e51b8fd988beeb37b.tar.bz2
historical-2e4dd731e81344730021912e51b8fd988beeb37b.zip
Fix overflow. Bug #337233
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'games-puzzle/tint/files')
-rw-r--r--games-puzzle/tint/files/tint-0.03b-ovflfix.patch20
1 files changed, 20 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..2be95fde54dc
--- /dev/null
+++ b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch
@@ -0,0 +1,20 @@
+--- tint.c.old 2010-11-08 11:15:12.000000000 +0100
++++ tint.c 2010-11-08 11:16:06.000000000 +0100
+@@ -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)
+ {