From 168eab11a7cef7ecd8a42ffec160fe2314442b73 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 28 Apr 2023 07:23:53 +0100 Subject: [PATCH] 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 98b7dd1a..6eb56ec5 100644 --- a/tty-term.c +++ b/tty-term.c @@ -845,7 +845,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);