summaryrefslogtreecommitdiffstats
path: root/debian/patches/91_TERMCAP_BUF-is-used-in-place-of-TERMCAP_BUFSIZE.patch
blob: bbe1bc6ffa717553f776ab19d2532cc1f530d7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: TERMCAP_BUF is used in place of TERMCAP_BUFSIZE.
Origin: 30c9a2a6c190647e35d1ce7b4758de9081f06d10
Author: Victor Dmitriev <mrvvitek@gmail.com>
Date: Mon, 27 Apr 2020 18:12:56 +0200
Bug: https://savannah.gnu.org/bugs/?58258

---
 src/termcap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/termcap.c
+++ b/termcap.c
@@ -1066,7 +1066,7 @@
 	{
 	  if (i >= T_KEYPAD)	/* don't put keypad codes in TERMCAP */
 	    continue;		/* - makes it too big */
-#if (TERMCAP_BUF < 1024)
+#if (TERMCAP_BUFSIZE < 1024)
           if (i >= T_FEXTRA && i < T_BACKTAB) /* also skip extra vt220 keys */
             continue;
           if (i > T_BACKTAB && i < T_NAVIGATE) /* more vt220 keys */