aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-05-02 17:05:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-13 18:08:16 -0400
commit0f6e8aab94035f5a649195a2179813bc3db98272 (patch)
tree31e988ba451f2312af345effbd683ff02629f96a /drivers/staging/vt6656
parentstaging: wlags49_h2: strncpy, need checking the memory length (diff)
downloadlinux-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