tr181: dynamicdns: fix invalid call to snprintf

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
Daniel Danzberger 2020-02-13 18:13:22 +01:00
parent dd31072c40
commit 1ea3b384d6

View file

@ -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);