]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/northbound_cli.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / northbound_cli.c
index d685a4e7c282b0ade78a30f2e8c16e418bcd224e..acde0ead025ac47d62750a6baff0480a06995cd0 100644 (file)
@@ -71,7 +71,7 @@ void nb_cli_enqueue_change(struct vty *vty, const char *xpath,
        }
 
        change = &vty->cfg_changes[vty->num_cfg_changes++];
-       change->xpath = xpath;
+       strlcpy(change->xpath, xpath, sizeof(change->xpath));
        change->operation = operation;
        change->value = value;
 }