lockd: fix access beyond unterminated strings in prints

commit 93f38b6fae upstream.

printk format used %*s instead of %.*s, so hostname_len does not limit
the number of bytes accessed from hostname.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Amir Goldstein 2018-09-28 20:41:48 +03:00 • committed by Ben Hutchings
commit 75b4ee977f