sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit aae808fe5b9a3922ac441a29ca7544dcf702efd4
parent ef9f6f359a0762b738302ae05822514d72b70450
Author: Richard Ipsum <richardipsum@fastmail.co.uk>
Date:   Mon, 22 Apr 2019 23:35:08 +0100

cal: Fix grid alignment for years < 1000

Diffstat:
Mcal.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cal.c b/cal.c @@ -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');