]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_clist.h
bgpd: Use string length not sizeof the array
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Jan 2019 01:43:53 +0000 (20:43 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 17 Jan 2019 01:43:53 +0000 (20:43 -0500)
commita7e046a20aae684e9f4e9e634441841297b1359c
tree6b1a34a226f0c04b61f0634e1aabb1c05bbbcaf2
parent5414658aa57a029aca103207b4a9b2c6b6aa6b3a
bgpd: Use string length not sizeof the array

strlen is the same as sizeof when the memory is dynamically allocated
but it is not the same when the memory being looked at is an array.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_clist.h