Skip to content

Commit

Permalink
zebra: fix compiler warning about truncation.
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hopps <[email protected]>
  • Loading branch information
choppsv1 committed Jan 29, 2024
1 parent f8755d7 commit a403a71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zebra/zebra_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,12 @@ DEFUN_YANG_NOSH (link_params,

ret = nb_cli_apply_changes(vty, NULL);
if (ret == CMD_SUCCESS) {
char xpath[XPATH_MAXLEN];
char *xpath;

snprintf(xpath, sizeof(xpath), "%s/frr-zebra:zebra/link-params",
VTY_CURR_XPATH);
xpath = asprintfrr(MTYPE_TMP, "%s/frr-zebra:zebra/link-params",
VTY_CURR_XPATH);
VTY_PUSH_XPATH(LINK_PARAMS_NODE, xpath);
XFREE(MTYPE_TMP, xpath);
}

return ret;
Expand Down

0 comments on commit a403a71

Please sign in to comment.