xt_helper: use sizeof()
Subsystems (3)
PATCH 1/1 xt_helper: use sizeof()
use sizeof() to improve the readability.
Signed-off-by Changli Gao <[email protected]>
----
net/netfilter/xt_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_helper.c +1 -1
@@ -65,7 +65,7 @@ static int helper_mt_check(const struct xt_mtchk_param *par) par->family);return ret; } - info->name[29 ] ='\0' ; + info->name[sizeof (info->name) -1 ] ='\0' ;return 0 ; }
Patrick McHardy
AppliedQuoted 2 lines · Changli Gao
use
sizeof()to improve the readability.
Applied, thanks.
One more request about your changelogs though: please use capital letters at the beginning of new sentences in the patch description.
Quoted 5 lines · Patrick McHardy
Quoted 2 lines · Changli Gao
use
sizeof()to improve the readability.Applied, thanks.
I see that you sent another patch for this using a different subject. Please state it clearly when you wish to withdraw a patch. I've backed it out again.