]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: netfilter: using strlcpy() instead of strncpy()
authorChen Gang <gang.chen@asianux.com>
Thu, 16 May 2013 22:07:22 +0000 (22:07 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 May 2013 09:24:57 +0000 (11:24 +0200)
commita4798ed25c7ce7744e700979152f453bf63a8088
treec7e1e671917dee9b6b5d39cc709f087e8cfbcfee
parenta0af16eac8a3febc53e385a3b89829028381b3b1
bridge: netfilter: using strlcpy() instead of strncpy()

'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@asianux.com>
Acked-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c