summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd_common.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2024-07-22 11:19:50 -0500
committerJafar Al-Gharaibeh <jafar@atcorp.com>2024-07-22 11:35:47 -0500
commit7b0b8a8b089d20841bde03eb009a7d1db929fa75 (patch)
tree0dc05655839148836fc763fa8dc329810dc8aae6 /pimd/pim_cmd_common.c
parentf2d5bf7b67801c58a56251a774765d1311c1190b (diff)
pimd: fix compile warnings
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
-rw-r--r--pimd/pim_cmd_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c
index c6cb28c097..d1368ff1ff 100644
--- a/pimd/pim_cmd_common.c
+++ b/pimd/pim_cmd_common.c
@@ -100,8 +100,8 @@ int pim_process_no_join_prune_cmd(struct vty *vty)
int pim_process_spt_switchover_infinity_cmd(struct vty *vty)
{
- char spt_plist_xpath[XPATH_MAXLEN];
- char spt_action_xpath[XPATH_MAXLEN];
+ char spt_plist_xpath[XPATH_MAXLEN + 40];
+ char spt_action_xpath[XPATH_MAXLEN + 26];
snprintf(spt_plist_xpath, sizeof(spt_plist_xpath),
"%s/spt-switchover/spt-infinity-prefix-list", VTY_CURR_XPATH);
@@ -522,7 +522,7 @@ int pim_process_no_rp_cmd(struct vty *vty, const char *rp_str,
const char *group_str)
{
char group_xpath[XPATH_MAXLEN];
- char rp_xpath[XPATH_MAXLEN];
+ char rp_xpath[XPATH_MAXLEN + 47];
int printed;
const struct lyd_node *group_dnode;
@@ -568,8 +568,8 @@ int pim_process_rp_plist_cmd(struct vty *vty, const char *rp_str,
int pim_process_no_rp_plist_cmd(struct vty *vty, const char *rp_str,
const char *prefix_list)
{
- char rp_xpath[XPATH_MAXLEN];
- char plist_xpath[XPATH_MAXLEN];
+ char rp_xpath[XPATH_MAXLEN + 47];
+ char plist_xpath[XPATH_MAXLEN + 1070];
const struct lyd_node *plist_dnode;
const char *plist;