commit | 8bc14d25ffb9dfc242d3a877bb4fe683adb27692 | [log] [tgz] |
---|---|---|
author | Chen Gang <gang.chen@asianux.com> | Thu May 16 22:07:22 2013 +0000 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Thu May 23 11:24:57 2013 +0200 |
tree | c7e1e671917dee9b6b5d39cc709f087e8cfbcfee | |
parent | 00028aa37098168048728acc32ab0206687f2920 [diff] |
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>