cal: Fix grid alignment for years < 1000

This commit is contained in:
Richard Ipsum 2019-04-22 23:35:08 +01:00 committed by Michael Forney
parent ef9f6f359a
commit aae808fe5b

2
cal.c
View File

@ -109,7 +109,7 @@ drawcal(size_t year, int month, size_t ncols, size_t nmons, int fday)
cur_month -= 12;
cur_year += 1;
}
printf(" %s %zu ", smon[cur_month], cur_year);
printf(" %s %-4zu ", smon[cur_month], cur_year);
printf(" ");
}
putchar('\n');