On 2012-12-03 1:42 PM, Frank Meerkötter wrote:
> Hi,
> 
> i noticed that strncpy wasn't used correctly here.
> Please review/apply.
> 
> Patch follows:
> 
> From the man page:
>   [...]
>     The strncpy() function is similar, except that at most n
>     bytes of src are copied.  Warning: If there is no null byte
>     among the first  n  bytes  of src, the string placed in dest
>     will not be null-terminated.
>   [...]
As far as I know, this is not a problem for these ioctls. The kernel
should handle this corner case properly.

- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to