* misc-utils/cal.c (ascii_day): Avoid this warning from gcc -Wformat: "format not a string literal and no format arguments". Signed-off-by: Jim Meyering <jim@xxxxxxxxxxxx> --- misc-utils/cal.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 77333d8..10bb8b5 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -702,7 +702,7 @@ ascii_day(char *p, int day) { } if (day & TODAY_FLAG) { day &= ~TODAY_FLAG; - p += sprintf(p, Senter); + p += sprintf(p, "%s", Senter); highlight = 1; } if (julian) { @@ -725,7 +725,7 @@ ascii_day(char *p, int day) { *p++ = aday[day][1]; } if (highlight) - p += sprintf(p, Sexit); + p += sprintf(p, "%s", Sexit); *p++ = ' '; return p; } -- 1.5.3.2.99.ge4b2-dirty - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html