aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r--coreutils/cal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 158b23fbc..0b2307349 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -181,10 +181,11 @@ int cal_main(int argc UNUSED_PARAM, char **argv)
181 181
182 sprintf(lineout, "%u", year); 182 sprintf(lineout, "%u", year);
183 center(lineout, 183 center(lineout,
184 (WEEK_LEN * 3 + HEAD_SEP * 2) 184 (WEEK_LEN * 3 + HEAD_SEP * 2)
185 + julian * (J_WEEK_LEN * 2 + HEAD_SEP 185 + julian * (J_WEEK_LEN * 2 + HEAD_SEP
186 - (WEEK_LEN * 3 + HEAD_SEP * 2)), 186 - (WEEK_LEN * 3 + HEAD_SEP * 2)),
187 0); 187 0
188 );
188 puts("\n"); /* two \n's */ 189 puts("\n"); /* two \n's */
189 for (i = 0; i < 12; i++) { 190 for (i = 0; i < 12; i++) {
190 day_array(i + 1, year, days[i]); 191 day_array(i + 1, year, days[i]);