From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <519DF601.1010400@asianux.com> Date: Thu, 23 May 2013 18:57:05 +0800 From: Chen Gang MIME-Version: 1.0 References: <5195E53A.4060406@asianux.com> <20130523105600.GA22553@localhost> In-Reply-To: <20130523105600.GA22553@localhost> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [PATCH] bridge: netfilter: using strlcpy() instead of strncpy() List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pablo Neira Ayuso Cc: coreteam@netfilter.org, netdev , bridge@lists.linux-foundation.org, David Miller , stephen@networkplumber.org, netfilter@vger.kernel.org, bart.de.schuymer@pandora.be, netfilter-devel@vger.kernel.org, kaber@trash.net On 05/23/2013 06:56 PM, Pablo Neira Ayuso wrote: > On Fri, May 17, 2013 at 04:07:22PM +0800, Chen Gang wrote: >> > >> > '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(). > Applied, thanks. > > Thank you too. -- Chen Gang Asianux Corporation