]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: cleanup code to copy to log strings
authorKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2018 15:08:11 +0000 (17:08 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2018 15:08:11 +0000 (17:08 +0200)
commitac5c12fdc2230f8decdd930bb9c089d5e1f89236
tree9e4a49e744955ae3bc46581dd099e7a580629d3e
parent561472a40d6793911a59146a41afcc07bfffea24
login: cleanup code to copy to log strings

man utmp:
  String fields are terminated by a null byte ('\0') if they are shorter
  than the size of the field.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c