]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: remove useless strlen()
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 1 Dec 2016 08:52:06 +0000 (09:52 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Dec 2016 11:35:24 +0000 (12:35 +0100)
commit77f5a945868e9a2bf9fe71bfdbe8bf54a2441699
tree20ca2f4c50e3f4304be011b678af772724e3ca71
parent55771f54096eec064d8284a54a119f0b371cd7fb
lslogins: remove useless strlen()

strlen() is not smarter than strncpy(). Bytes that follow a null byte
are not compared anyway.

BTW avoid using the defined sizes.

CC: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
login-utils/lslogins.c