From c1f143931657d8c0226e7f788a36d70108cf7918 Mon Sep 17 00:00:00 2001 From: Aurelien LAJOIE Date: Sat, 28 Mar 2020 23:33:39 +0100 Subject: [PATCH] cal: use a const char* A put string function should not modify the char* Signed-off-by: Aurelien LAJOIE --- misc-utils/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 6f192cceaa..7286003779 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -108,7 +108,7 @@ static int setup_terminal(char *term return 0; } -static void my_putstring(char *s) +static void my_putstring(const char *s) { #if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW) if (has_term) -- 2.47.2