From: Aurelien LAJOIE Date: Sat, 28 Mar 2020 22:33:39 +0000 (+0100) Subject: cal: use a const char* X-Git-Tag: v2.36-rc1~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1f143931657d8c0226e7f788a36d70108cf7918;p=thirdparty%2Futil-linux.git cal: use a const char* A put string function should not modify the char* Signed-off-by: Aurelien LAJOIE --- 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)