commit | 1aeb6e7cd118b90f1a227c79b26100af6a15960e | [log] [tgz] |
---|---|---|
author | Damien Le Moal <damien.lemoal@wdc.com> | Thu Jul 16 13:38:14 2020 +0900 |
committer | Mike Snitzer <snitzer@redhat.com> | Tue Aug 04 15:50:58 2020 -0400 |
tree | 9b2aadff0d0d39273895a3c3b00319ec8bfa1c66 | |
parent | 04dc5330e5deebde2c88f8422c446e8212090ba3 [diff] |
dm ioctl: Fix compilation warning In retrieve_status(), when copying the target type name in the target_type string field of struct dm_target_spec, copy at most DM_MAX_TYPE_NAME - 1 character to avoid the compilation warning: warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] when compiling with W-1. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>