Skip to content

Commit 573b86f

Browse files
committed
coreutils/who.c: use of potentially dangerous function (fix 17)
Alerts: mirror#59 text data bss dec hex filename 1155501 18124 2056 1175681 11f081 busybox 1155846 18124 2056 1176026 11f1da busybox Total 17 fixes +345 Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
1 parent 656338f commit 573b86f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

coreutils/who.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ int who_main(int argc UNUSED_PARAM, char **argv)
114114
struct utmpx *ut;
115115
unsigned opt;
116116
const char *fmt = "%s";
117+
char tbuf[CTIME_BUF_MAXLEN];
117118

118119
opt = getopt32(argv, do_who ? "^" "aH" "\0" "=0": "^" "" "\0" "=0");
119120
if ((opt & 2) || do_w) /* -H or we are w */

0 commit comments

Comments
 (0)