summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-06 23:27:33 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:03:26 +0200
commit65b88efa72d22a33cca795899268bcb0eabda979 (patch)
tree2d8bfa22528ad8fc7c9fc25fcbc69cdd0b4d278d /pbrd
parentpimd: strcpy -> strlcpy (diff)
downloadfrr-65b88efa72d22a33cca795899268bcb0eabda979.tar.xz
frr-65b88efa72d22a33cca795899268bcb0eabda979.zip
pbrd: strcpy -> strlcpy
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_nht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c
index 52506542b..fc78b8ed1 100644
--- a/pbrd/pbr_nht.c
+++ b/pbrd/pbr_nht.c
@@ -191,7 +191,7 @@ static void *pbr_nhgc_alloc(void *p)
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);
DEBUGD(&pbr_dbg_nht, "%s: NHT: %s assigned Table ID: %u",