summaryrefslogtreecommitdiff
path: root/games-misc/bsd-games/files/bsd-games-2.17-bg.patch
blob: 6503d9afcb5d3ab0845c4c23ab559d8916fd5e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/backgammon/common_source/fancy.c
+++ b/backgammon/common_source/fancy.c
@@ -58,7 +58,7 @@
 int     lUP;			/* length of UP */
 int     CO;			/* number of columns */
 int     LI;			/* number of lines */
-int    *linect;			/* array of lengths of lines on screen (the
+static int linect[25];		/* array of lengths of lines on screen (the
 				 * actual screen is not stored) */
 
  /* two letter codes */
@@ -728,10 +728,5 @@
 		lND = strlen(ND);
 	if (LI < 24 || CO < 72 || !(CL && UP && ND))
 		return (0);
-	linect = (int *) calloc(LI + 1, sizeof(int));
-	if (linect == NULL) {
-		write(2, "\r\nOut of memory!\r\n", 18);
-		getout(0);
-	}
 	return (1);
 }