From: Chen Gang Date: Thu, 2 May 2013 09:05:28 +0000 (+0800) Subject: staging: for dgrp, let nd_ps_desc always NUL terminated string within MAX_DESC_LEN... X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~754 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f6e8aab94035f5a649195a2179813bc3db98272;p=pandora-kernel.git 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 Acked-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed