diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:45:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-29 16:45:45 +0100 |
commit | 327f550669a80d72f36bc9e4de619c163aa46eff (patch) | |
tree | d304092aeb06539085be1385ab9298876c414b44 /coreutils/cal.c | |
parent | 9b2a9f0210f13f1c59c0b954c4aa0eeb0a66efd1 (diff) | |
download | busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.tar.gz busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.tar.bz2 busybox-w32-327f550669a80d72f36bc9e4de619c163aa46eff.zip |
Use unsigned printf/scanf conversion where more appropriate
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r-- | coreutils/cal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 0d388aa1c..12c46b14f 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -165,7 +165,7 @@ int cal_main(int argc UNUSED_PARAM, char **argv) | |||
165 | char lineout[30]; | 165 | char lineout[30]; |
166 | 166 | ||
167 | day_array(month, year, dp); | 167 | day_array(month, year, dp); |
168 | len = sprintf(lineout, "%s %d", month_names[month - 1], year); | 168 | len = sprintf(lineout, "%s %u", month_names[month - 1], year); |
169 | printf("%*s%s\n%s\n", | 169 | printf("%*s%s\n%s\n", |
170 | ((7*julian + WEEK_LEN) - len) / 2, "", | 170 | ((7*julian + WEEK_LEN) - len) / 2, "", |
171 | lineout, day_headings); | 171 | lineout, day_headings); |