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
|
From 736f7f223235bc050d71565ef243739ef27af066 Mon Sep 17 00:00:00 2001
From: Nicholas Marriott <nicholas.marriott@gmail.com>
Date: Fri, 28 Apr 2023 07:23:53 +0100
Subject: [PATCH 3/4] Cast both strings for tparm.
---
tty-term.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tty-term.c b/tty-term.c
index 18b174208d..f2b548d811 100644
--- a/tty-term.c
+++ b/tty-term.c
@@ -839,7 +839,7 @@ tty_term_string_ss(struct tty_term *term, enum tty_code_code code,
#elif defined(HAVE_TIPARM)
s = tiparm(x, a, b);
#else
- s = tparm((char *)x, (long)a, b, 0, 0, 0, 0, 0, 0, 0);
+ s = tparm((char *)x, (long)a, (long)b, 0, 0, 0, 0, 0, 0, 0);
#endif
if (s == NULL)
fatalx("could not expand %s", tty_term_codes[code].name);
--
2.39.2
|