On Saturday 21 November 2009 18:02:56 Németh Márton wrote:
> From: Márton Németh <[email protected]>
> 
> Use strlcat() to append a string to the previously created first part.
> The strlcat() function limits the size of the string to the whole
> destination buffer.
> 
> The semantic match that finds this kind of problem is as follows:
> (http://coccinelle.lip6.fr/)
> 
> // <smpl>
> @@
> expression dev;
> expression phys;
> expression str;
> expression size;
> @@
>       usb_make_path(dev, phys, size);
> -     strncat(phys, str, size);
> +     strlcat(phys, str, size);
> // </smpl>
> 
> Signed-off-by: Márton Németh <[email protected]>

Acked-by: Laurent Pinchart <[email protected]>

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to