diff options
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r-- | coreutils/cal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 786156253..cd7be0d30 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -161,7 +161,7 @@ int cal_main(int argc, char **argv) | |||
161 | int row, len, days[MAXDAYS]; | 161 | int row, len, days[MAXDAYS]; |
162 | int *dp = days; | 162 | int *dp = days; |
163 | char lineout[30]; | 163 | char lineout[30]; |
164 | 164 | ||
165 | day_array(month, year, dp); | 165 | day_array(month, year, dp); |
166 | len = sprintf(lineout, "%s %d", month_names[month - 1], year); | 166 | len = sprintf(lineout, "%s %d", month_names[month - 1], year); |
167 | bb_printf("%*s%s\n%s\n", | 167 | bb_printf("%*s%s\n%s\n", |
@@ -176,7 +176,7 @@ int cal_main(int argc, char **argv) | |||
176 | int row, which_cal, week_len, days[12][MAXDAYS]; | 176 | int row, which_cal, week_len, days[12][MAXDAYS]; |
177 | int *dp; | 177 | int *dp; |
178 | char lineout[80]; | 178 | char lineout[80]; |
179 | 179 | ||
180 | sprintf(lineout, "%d", year); | 180 | sprintf(lineout, "%d", year); |
181 | center(lineout, | 181 | center(lineout, |
182 | (WEEK_LEN * 3 + HEAD_SEP * 2) | 182 | (WEEK_LEN * 3 + HEAD_SEP * 2) |
@@ -317,7 +317,7 @@ static void blank_string(char *buf, size_t buflen) | |||
317 | static char *build_row(char *p, int *dp) | 317 | static char *build_row(char *p, int *dp) |
318 | { | 318 | { |
319 | int col, val, day; | 319 | int col, val, day; |
320 | 320 | ||
321 | memset(p, ' ', (julian + DAY_LEN) * 7); | 321 | memset(p, ' ', (julian + DAY_LEN) * 7); |
322 | 322 | ||
323 | col = 0; | 323 | col = 0; |