From: Roel Kluin Date: Thu, 10 Dec 2009 23:52:07 +0000 (+0000) Subject: dm ioctl: prefer strlcpy over strncpy X-Git-Tag: v2.6.33-rc1~75^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a518b86d0b1b6a474f154697dc6f33e0a317ae72;p=pandora-kernel.git 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 --- Reading git-diff-tree failed