diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-10 23:52:07 (GMT) |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-12-10 23:52:07 (GMT) |
commit | a518b86d0b1b6a474f154697dc6f33e0a317ae72 (patch) | |
tree | 759b2ddb2a6a7f3745ee88d817652de5568da509 /drivers/md/dm-snap-persistent.c | |
parent | 5339fc2d47d1d720e027b9b832bf5aae8fba2ac0 (diff) | |
download | linux-fsl-qoriq-a518b86d0b1b6a474f154697dc6f33e0a317ae72.tar.xz |
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 <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
0 files changed, 0 insertions, 0 deletions