]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: use domain string more carefully
authorKarel Zak <kzak@redhat.com>
Mon, 13 Mar 2017 11:55:44 +0000 (12:55 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Mar 2017 11:55:44 +0000 (12:55 +0100)
commitbd2aece45eea531c3317e57b1ba06b30c4304554
treec9d8cf9ca6d1884631728c839800ae97f6e39627
parentb0f97de5a4ab62de55984651a6723acfff6917ae
last: use domain string more carefully

Use xstrcpy() to explicitly terminate the domain string.

Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/last.c