staging: lustre: lustre: ptlrpc: sec.c: Replacing strncat with strlcat to avoid overw...
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 12 Oct 2014 15:55:33 +0000 (17:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 08:25:23 +0000 (16:25 +0800)
commit22e1dd69fec2f0e887103f6b0dc8e310f649c1c1
tree7a5e8fb488b19965199b339589d44267554317b1
parent5a13503ecdf3ee6127b2833ed37dfc5dccb6a3dd
staging: lustre: lustre: ptlrpc: sec.c: Replacing strncat with strlcat to avoid overwrite size

Changed from using strncat with strlcat to avoid overwrite the max size.
Take the opportunity to change a snprint to strlcpy.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec.c