diff options
| author | Philip Prindeville | 2021-02-19 20:49:35 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2021-02-28 14:37:46 +0000 |
| commit | c2c72c6fc29cb895f25759d76e10c00a8faaa148 (patch) | |
| tree | b6756742127817a2a4bf53ec34197c8313a659de | |
| parent | 12f6f143106257e0921c6ebbca2fe329cbeb3de6 (diff) | |
| download | firewall3-c2c72c6fc29cb895f25759d76e10c00a8faaa148.tar.gz | |
firewall3: remove last remaining sprintf()
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
| -rw-r--r-- | iptables.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1022,7 +1022,7 @@ fw3_ipt_rule_icmptype(struct fw3_ipt_rule *r, struct fw3_icmptype *icmp) #endif { if (icmp->code_min == 0 && icmp->code_max == 0xFF) - sprintf(buf, "%u", icmp->type); + snprintf(buf, sizeof(buf), "%u", icmp->type); else snprintf(buf, sizeof(buf), "%u/%u", icmp->type, icmp->code_min); |