On Thu, May 02, 2013 at 05:05:28PM +0800, Chen Gang wrote:
> 
> 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).
> 

Looks good.

Acked-by: Dan Carpenter <[email protected]>

regards,
dan carpenter

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to