Skip to content

Commit

Permalink
Merge pull request #15248 from LabNConsulting/chopps/fix-comp-warning
Browse files Browse the repository at this point in the history
zebra: fix compiler warning about truncation.
  • Loading branch information
idryzhov authored Jan 29, 2024
2 parents f8755d7 + a403a71 commit bb957e4
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 bb957e4

Please sign in to comment.