568da509 parent 5339fc2d47d1d720e027b9b832bf5aae8fba2ac0 author Roel Kluin 1260489127 +0000 committer Alasdair G Kergon 1260489127 +0000 dm ioctl: prefer strlcpy over strncpy strlcpy() will always null terminate the string. The code should already guarantee this as the last bytes are already NULs and the string lengths were restricted before being stored in hc. Removing the '-1' becomes necessary so strlcpy() doesn't lose the last character of a maximum-length string. - agk Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: Alasdair G Kergon j`ô„› x