cifs: using strlcpy instead of strncpy
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Mon, 24 Jun 2013 06:57:47 +0000 (01:57 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 26 Jun 2013 22:25:20 +0000 (17:25 -0500)
commit46b51d0835ef1e75dd48fe10c90f9c775301d9ee
tree4980c0ef982dbfb3737496967c1155643f39b2d5
parentbe7457d388d25e5d2ebba4c7f216b47b5e3d1eef
cifs: using strlcpy instead of strncpy

for NUL terminated string, need alway set '\0' in the end.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c
fs/cifs/smb2pdu.c