projects
/
project
/
firewall3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12f6f14
)
firewall3: remove last remaining sprintf()
author
Philip Prindeville
<philipp@redfish-solutions.com>
Fri, 19 Feb 2021 20:49:35 +0000
(13:49 -0700)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Sun, 28 Feb 2021 14:37:46 +0000
(15:37 +0100)
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Reviewed-by: Rosen Penev <rosenp@gmail.com>
iptables.c
patch
|
blob
|
history
diff --git
a/iptables.c
b/iptables.c
index 9e8fa743c99f84222307128047d40d657916aa75..49b34394dfec4df361ec1cf6778cade831454c7c 100644
(file)
--- a/
iptables.c
+++ b/
iptables.c
@@
-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)
- s
printf(buf
, "%u", icmp->type);
+ s
nprintf(buf, sizeof(buf)
, "%u", icmp->type);
else
snprintf(buf, sizeof(buf), "%u/%u", icmp->type, icmp->code_min);