mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-29 20:10:12 +00:00
Merge pull request #15248 from LabNConsulting/chopps/fix-comp-warning
zebra: fix compiler warning about truncation.
This commit is contained in:
commit
bb957e4c94
@ -230,11 +230,12 @@ DEFUN_YANG_NOSH (link_params,
|
|||||||
|
|
||||||
ret = nb_cli_apply_changes(vty, NULL);
|
ret = nb_cli_apply_changes(vty, NULL);
|
||||||
if (ret == CMD_SUCCESS) {
|
if (ret == CMD_SUCCESS) {
|
||||||
char xpath[XPATH_MAXLEN];
|
char *xpath;
|
||||||
|
|
||||||
snprintf(xpath, sizeof(xpath), "%s/frr-zebra:zebra/link-params",
|
xpath = asprintfrr(MTYPE_TMP, "%s/frr-zebra:zebra/link-params",
|
||||||
VTY_CURR_XPATH);
|
VTY_CURR_XPATH);
|
||||||
VTY_PUSH_XPATH(LINK_PARAMS_NODE, xpath);
|
VTY_PUSH_XPATH(LINK_PARAMS_NODE, xpath);
|
||||||
|
XFREE(MTYPE_TMP, xpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user