diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-misc/bsd-games/files/bsd-games-2.17-bg.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-misc/bsd-games/files/bsd-games-2.17-bg.patch')
-rw-r--r-- | games-misc/bsd-games/files/bsd-games-2.17-bg.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-misc/bsd-games/files/bsd-games-2.17-bg.patch b/games-misc/bsd-games/files/bsd-games-2.17-bg.patch new file mode 100644 index 000000000000..07dc520b77e4 --- /dev/null +++ b/games-misc/bsd-games/files/bsd-games-2.17-bg.patch @@ -0,0 +1,22 @@ +--- backgammon/common_source/fancy.c.old 2007-05-16 20:16:46.000000000 +0200 ++++ backgammon/common_source/fancy.c 2007-05-16 20:19:00.000000000 +0200 +@@ -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); + } |