commit | 4b259fc4a8a12dcd0ffd670877a7a1ca2ab0f3e3 | [log] [tgz] |
---|---|---|
author | Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> | Tue Dec 12 17:39:10 2017 +0800 |
committer | Mike Snitzer <snitzer@redhat.com> | Wed Jan 17 09:16:16 2018 -0500 |
tree | 948cf6d3629f6ce40f142532faaca9121c2d65f3 | |
parent | d5ffebdd797a7c1c89576267640f671db2a668fc [diff] |
dm log writes: fix max length used for kstrndup If source string is longer than max, kstrndup will allocate max+1 space. So make sure the result will not exceed max. Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>