From 280190ac24bcf784f1e4a1a8efccbb112c58440f Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 12 Apr 2024 07:54:05 +0200 Subject: [PATCH] confd: drop redundant (and wrong) strlcpy(), found by Coverity Scan The new strdupa() code handles copying the new->xpath. Signed-off-by: Joachim Wiberg --- src/confd/src/infix-dhcp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/confd/src/infix-dhcp.c b/src/confd/src/infix-dhcp.c index 90087829..6cd1abbb 100644 --- a/src/confd/src/infix-dhcp.c +++ b/src/confd/src/infix-dhcp.c @@ -401,7 +401,6 @@ static int cand(sr_session_ctx_t *session, uint32_t sub_id, const char *module, return SR_ERR_SYS; } - strlcpy(xpath, new->xpath, sizeof(xpath)); if ((ptr = strstr(xpath, "]/")) == NULL) continue; ptr[1] = 0;