]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_lsa.c
Merge pull request #5468 from qlyoung/bgpd-remove-bgp-attr-dup
[mirror_frr.git] / ospfd / ospf_lsa.c
index 3e3f288023961ae6318c3a1337d1890c4c0bceeb..6eec87c93ea87931096cdc5560df1939cd2c2611 100644 (file)
@@ -290,7 +290,7 @@ void ospf_lsa_data_free(struct lsa_header *lsah)
 
 const char *dump_lsa_key(struct ospf_lsa *lsa)
 {
-       static char buf[] = {"Type255,id(255.255.255.255),ar(255.255.255.255)"};
+       static char buf[sizeof("Type255,id(255.255.255.255),ar(255.255.255.255)")+1];
        struct lsa_header *lsah;
 
        if (lsa != NULL && (lsah = lsa->data) != NULL) {