commit | 0f6e8aab94035f5a649195a2179813bc3db98272 | [log] [tgz] |
---|---|---|
author | Chen Gang <gang.chen@asianux.com> | Thu May 02 17:05:28 2013 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon May 13 18:08:16 2013 -0400 |
tree | 31e988ba451f2312af345effbd683ff02629f96a | |
parent | 205179d0c02cb3f59eda77d3e6cc895b7d4b06bd [diff] |
staging: for dgrp, let nd_ps_desc always NUL terminated string within MAX_DESC_LEN length Use strlcpy instead of strncpy to let nd_ps_desc always NUL terminated. Change nd_ps_desc in nd_struct struct to MAX_DESC_LEN to avoid the confusion (the related length checking also need be changed to MAX_DESC_LEN - 1). Signed-off-by: Chen Gang <gang.chen@asianux.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>