[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5199768E.4060706@asianux.com>
Date: Mon, 20 May 2013 09:04:14 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Bart De Schuymer <bdschuym@...dora.be>
CC: bart.de.schuymer@...dora.be, pablo@...filter.org, kaber@...sh.net,
stephen@...workplumber.org, David Miller <davem@...emloft.net>,
netfilter-devel@...r.kernel.org, netfilter@...r.kernel.org,
coreteam@...filter.org, bridge@...ts.linux-foundation.org,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] bridge: netfilter: using strlcpy() instead of strncpy()
On 05/20/2013 03:43 AM, Bart De Schuymer wrote:
> 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@...anux.com>
> Acked-by: Bart De Schuymer <bdschuym@...dora.be>
Thanks.
--
Chen Gang
Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists