mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
confd: drop redundant (and wrong) strlcpy(), found by Coverity Scan
The new strdupa() code handles copying the new->xpath. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user