Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37765826
en ru br
Репозитории ALT

Группа :: Игры/Прочее
Пакет: bsd-games

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: bsd-games-2.17-backgammonsize.patch
Скачать


--- backgammon/common_source/fancy.c.orig	2010-04-18 16:59:55.000000000 -0700
+++ backgammon/common_source/fancy.c	2010-04-18 17:27:47.000000000 -0700
@@ -575,7 +575,7 @@
 	}
 	curr = curc = 0;	/* fix position markers */
 	realr = realc = -1;
-	for (i = 0; i < 24; i++)/* clear line counts */
+	for (i = 0; i < LI; i++)/* clear line counts */
 		linect[i] = -1;
 	buffnum = -1;		/* ignore leftover buffer contents */
 	tputs(CL, CO, addbuf);	/* put CL in buffer */
@@ -726,9 +726,9 @@
 		lUP = strlen(UP);
 	if (ND)
 		lND = strlen(ND);
+	linect = (int *) calloc(LI + 1, sizeof(int));
 	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);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin