diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-05-02 17:05:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-13 18:08:16 -0400 |
commit | 0f6e8aab94035f5a649195a2179813bc3db98272 (patch) | |
tree | 31e988ba451f2312af345effbd683ff02629f96a /drivers/staging/vt6656 | |
parent | staging: wlags49_h2: strncpy, need checking the memory length (diff) | |
download | linux-dev-0f6e8aab94035f5a649195a2179813bc3db98272.tar.xz linux-dev-0f6e8aab94035f5a649195a2179813bc3db98272.zip |
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>
Diffstat (limited to 'drivers/staging/vt6656')
0 files changed, 0 insertions, 0 deletions