diff options
author | Ruediger Meier | 2016-12-01 09:52:08 +0100 |
---|---|---|
committer | Karel Zak | 2016-12-07 12:35:24 +0100 |
commit | a924b4004c154d6f75afd9e172e2595194cb60cc (patch) | |
tree | a558ca17729364bfc864ae70ddbe8ba9861fd32a /term-utils | |
parent | utmpdump: code formatting for readability (diff) | |
download | kernel-qcow2-util-linux-a924b4004c154d6f75afd9e172e2595194cb60cc.tar.gz kernel-qcow2-util-linux-a924b4004c154d6f75afd9e172e2595194cb60cc.tar.xz kernel-qcow2-util-linux-a924b4004c154d6f75afd9e172e2595194cb60cc.zip |
login-utils: avoid using the defined utmp sizes.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/write.c b/term-utils/write.c index e39b848ea..4f8f21eb5 100644 --- a/term-utils/write.c +++ b/term-utils/write.c @@ -164,7 +164,7 @@ static void search_utmp(struct write_control *ctl) struct utmp *u; time_t best_atime = 0, tty_atime; int num_ttys = 0, valid_ttys = 0, tty_writeable = 0, user_is_me = 0; - char path[UT_LINESIZE + 6]; + char path[sizeof(u->ut_line) + 6]; utmpname(_PATH_UTMP); setutent(); |