From 65b88efa72d22a33cca795899268bcb0eabda979 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 6 May 2019 21:27:33 +0000 Subject: [PATCH] pbrd: strcpy -> strlcpy Signed-off-by: Quentin Young --- pbrd/pbr_nht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c index 52506542bc..fc78b8ed1f 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", -- 2.39.5