diff options
author | Florian Westphal <fw@strlen.de> | 2019-09-16 15:44:48 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-09-16 15:44:48 +0200 |
commit | 03a4a20b675fb728866b51864b885714551176d3 (patch) | |
tree | 423a8d236c612c6f19678b22a5d8729f8ebc0cd0 /extensions/libipt_MASQUERADE.c | |
parent | 7f97513ae2532c62854084e914a517ea79ad3b31 (diff) |
libiptc: silence two comiler warnings
avoid hyptothetical truncation by leaving space for triling zero byte.
silcences:
In file included from libip4tc.c:113:
libiptc.c: In function ‘iptcc_alloc_chain_head’:
libiptc.c:163:2: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
163 | strncpy(c->name, name, TABLE_MAXNAMELEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libiptc.c: In function ‘iptc_rename_chain’:
libiptc.c:2388:2: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
2388 | strncpy(c->name, newname, sizeof(IPT_CHAINLABEL));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
0 files changed, 0 insertions, 0 deletions