about summary refs log tree commit diff
path: root/wcal.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcal.c')
-rw-r--r--wcal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wcal.c b/wcal.c
index 2f5e3bf..a0cc5ad 100644
--- a/wcal.c
+++ b/wcal.c
@@ -121,8 +121,7 @@ main(int argc, char *argv[])
 			printf("%s ", buf);
 			months++;
 		} else if ((tm->tm_mon == 0 && tm->tm_yday < 14) || weeks == 1) {
-			strftime(buf, sizeof buf, "%Y", tm);
-			printf("%s", buf);
+			printf("%04d", tm->tm_year + 1900);
 		} else {
 			printf("    ");
 		}