Skip to content

Commit 656338f

Browse files
committed
util-linux/cal.c: use of potentially dangerous function (fix 7)
Alerts: mirror#74 text data bss dec hex filename 1155501 18124 2056 1175681 11f081 busybox 1155769 18132 2056 1175957 11f195 busybox Total 7 fixes +276 Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
1 parent 3bb2cd7 commit 656338f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

util-linux/cal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ enum {
105105
int cal_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
106106
int cal_main(int argc UNUSED_PARAM, char **argv)
107107
{
108-
struct tm zero_tm;
108+
struct tm zero_tm, tres;
109109
time_t now;
110110
unsigned month, year, flags, i, weekstart;
111111
char *month_names[12];

0 commit comments

Comments
 (0)