mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
pbrd: strcpy -> strlcpy
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
c35b7e6bea
commit
65b88efa72
@ -191,7 +191,7 @@ static void *pbr_nhgc_alloc(void *p)
|
|||||||
|
|
||||||
new = XCALLOC(MTYPE_PBR_NHG, sizeof(*new));
|
new = XCALLOC(MTYPE_PBR_NHG, sizeof(*new));
|
||||||
|
|
||||||
strcpy(new->name, pnhgc->name);
|
strlcpy(new->name, pnhgc->name, sizeof(pnhgc->name));
|
||||||
new->table_id = pbr_nht_get_next_tableid(false);
|
new->table_id = pbr_nht_get_next_tableid(false);
|
||||||
|
|
||||||
DEBUGD(&pbr_dbg_nht, "%s: NHT: %s assigned Table ID: %u",
|
DEBUGD(&pbr_dbg_nht, "%s: NHT: %s assigned Table ID: %u",
|
||||||
|
Loading…
Reference in New Issue
Block a user