aboutsummaryrefslogtreecommitdiff
path: root/coreutils/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r--coreutils/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c
index 9b597772e..ef70b0e35 100644
--- a/coreutils/cal.c
+++ b/coreutils/cal.c
@@ -147,7 +147,7 @@ int cal_main(int argc, char **argv)
unsigned *dp;
char lineout[80];
- sprintf(lineout, "%d", year);
+ sprintf(lineout, "%u", year);
center(lineout,
(WEEK_LEN * 3 + HEAD_SEP * 2)
+ julian * (J_WEEK_LEN * 2 + HEAD_SEP