A put string function should not modify the char* Signed-off-by: Aurelien LAJOIE <orel@xxxxxxxxx> --- 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 6f192ccea..728600377 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.20.1