[Bridge] [PATCH] bridge: netfilter: using strlcpy() instead of strncpy()

Bart De Schuymer bdschuym at pandora.be
Sun May 19 19:43:43 UTC 2013


Op 17/05/2013 10:07, Chen Gang schreef:
>
> 'name' has already set all zero when it is defined, so not need let
> strncpy() to pad it again.
>
> 'name' is a string, better always let is NUL terminated, so use
> strlcpy() instead of strncpy().
>
>
> Signed-off-by: Chen Gang <gang.chen at asianux.com>
Acked-by: Bart De Schuymer <bdschuym at pandora.be>




More information about the Bridge mailing list