diff options
author | Jim Meyering | 2007-09-25 14:25:41 +0200 |
---|---|---|
committer | Karel Zak | 2007-10-03 23:09:50 +0200 |
commit | 8c6c72bfe3c09250b4f5f4e044755b000c2c55de (patch) | |
tree | 0b40027ea7f3ccfb909b4d373d2b0a84596d2046 /misc-utils | |
parent | fsck.cramfs: clean up gcc warnings (diff) | |
download | kernel-qcow2-util-linux-8c6c72bfe3c09250b4f5f4e044755b000c2c55de.tar.gz kernel-qcow2-util-linux-8c6c72bfe3c09250b4f5f4e044755b000c2c55de.tar.xz kernel-qcow2-util-linux-8c6c72bfe3c09250b4f5f4e044755b000c2c55de.zip |
cal: avoid -Wformat warnings
Avoid this warning from gcc -Wformat:
"format not a string literal and no format arguments".
Signed-off-by: Jim Meyering <jim@meyering.net>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | 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 77333d818..10bb8b5cd 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; } |