From 1ea3b384d6367532dacdb1ef239d29a7e1645bf6 Mon Sep 17 00:00:00 2001 From: Daniel Danzberger Date: Thu, 13 Feb 2020 18:13:22 +0100 Subject: [PATCH] tr181: dynamicdns: fix invalid call to snprintf Signed-off-by: Daniel Danzberger --- dmtree/tr181/dynamicdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmtree/tr181/dynamicdns.c b/dmtree/tr181/dynamicdns.c index 9a30a18d..f48879af 100644 --- a/dmtree/tr181/dynamicdns.c +++ b/dmtree/tr181/dynamicdns.c @@ -1016,7 +1016,7 @@ int set_DynamicDNSServer_CheckInterval(char *refparam, struct dmctx *ctx, void * check_interval = atoi(value) * 60; else check_interval = atoi(value); - snprintf(buf, sizeof(buf), sizeof(buf), "%d", check_interval); + snprintf(buf, sizeof(buf), "%d", check_interval); dmuci_set_value_by_section((struct uci_section *)data, "check_interval", buf); dmuci_get_value_by_section_string((struct uci_section *)data, "service_name", &service_name);