]> git.proxmox.com Git - mirror_frr.git/blobdiff - vtysh/vtysh.c
pbrd: strcpy -> strlcpy
[mirror_frr.git] / vtysh / vtysh.c
index f1a5eca74bc4e21d5cc79e64b3a15fe9b9e9bfbd..a0b119c3ebaf23679efac8f33af7d252667dd505 100644 (file)
@@ -3347,7 +3347,7 @@ static void vtysh_update_all_instances(struct vtysh_client *head_client)
        dir = opendir(vtydir);
        if (dir) {
                while ((file = readdir(dir)) != NULL) {
-                       if (begins_with(file->d_name, "ospfd-")
+                       if (frrstr_startswith(file->d_name, "ospfd-")
                            && ends_with(file->d_name, ".vty")) {
                                if (n == MAXIMUM_INSTANCES) {
                                        fprintf(stderr,