From 12f6f143106257e0921c6ebbca2fe329cbeb3de6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 6 Dec 2020 14:56:26 +0100 Subject: [PATCH] iptables: fix serializing multiple weekdays Ref: https://bugs.openwrt.org/index.php?getfile=1053 Fixes: FS#1053 Fixes: 427bc12 ("iptables: fix serializing multiple weekdays") Signed-off-by: Jo-Philipp Wich --- iptables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables.c b/iptables.c index e7e8b59..9e8fa74 100644 --- a/iptables.c +++ b/iptables.c @@ -1208,7 +1208,7 @@ fw3_ipt_rule_time(struct fw3_ipt_rule *r, struct fw3_time *time) rem--; } - p += snprintf(p, rem, "%u", i); + len = snprintf(p, rem, "%u", i); if (len < 0 || len >= rem) break; -- 2.30.2