Re: [PATCH v2] staging: for dgrp, let nd_ps_desc always NUL terminated string within MAX_DESC_LEN length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013年05月02日 17:28, Dan Carpenter wrote:
> 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 <dan.carpenter@xxxxxxxxxx>

Thanks.

-- 
Chen Gang

Asianux Corporation
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux