forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tint-0.03b-ovflfix.patch
33 lines (31 loc) · 1021 Bytes
/
tint-0.03b-ovflfix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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)
{