summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-01-31 15:01:32 +0100
committerGitHub <noreply@github.com>2023-01-31 15:01:32 +0100
commitea768492f1499830292eec0a31b968e045d598f1 (patch)
tree7c1319f14ca28f5fd7b5ef79bd259b0ec9a1db9e /staticd
parentMerge pull request #12710 from opensourcerouting/fix/reset_fqdn_capability_on... (diff)
parentbuild: enable format string warnings (diff)
downloadfrr-ea768492f1499830292eec0a31b968e045d598f1.tar.xz
frr-ea768492f1499830292eec0a31b968e045d598f1.zip
Merge pull request #12695 from opensourcerouting/format-warnings
build: `-Wformat-nonliteral -Wformat-security`
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index ff7962203..c5bea755e 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -377,7 +377,7 @@ static int static_route_nb_run(struct vty *vty, struct static_route_args *args)
}
}
- ret = nb_cli_apply_changes(vty, xpath_prefix);
+ ret = nb_cli_apply_changes(vty, "%s", xpath_prefix);
} else {
if (args->source)
snprintf(ab_xpath, sizeof(ab_xpath),
@@ -411,7 +411,7 @@ static int static_route_nb_run(struct vty *vty, struct static_route_args *args)
yang_dnode_get_path(dnode, ab_xpath, XPATH_MAXLEN);
nb_cli_enqueue_change(vty, ab_xpath, NB_OP_DESTROY, NULL);
- ret = nb_cli_apply_changes(vty, ab_xpath);
+ ret = nb_cli_apply_changes(vty, "%s", ab_xpath);
}
return ret;