aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cal/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cal/cal.c')
-rw-r--r--usr.bin/cal/cal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/cal/cal.c b/usr.bin/cal/cal.c
index 6bc6a7b80336..f308ab82cf72 100644
--- a/usr.bin/cal/cal.c
+++ b/usr.bin/cal/cal.c
@@ -199,6 +199,7 @@ monthly(month, year)
for (col = 0, p = lineout; col < 7; col++,
p += julian ? J_DAY_LEN : DAY_LEN)
ascii_day(p, days[row * 7 + col]);
+ *p = 0;
trim_trailing_spaces(lineout);
(void)printf("%s\n", lineout);
}