From ff9e706905483fceae82c27161d929ee0654c894 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 5 Mar 2026 12:41:03 -0500 Subject: Bugfix: Remove redundant string copy after duplication --- src/lib/core/strlist.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/core/strlist.c b/src/lib/core/strlist.c index a0db5f3..b742d37 100644 --- a/src/lib/core/strlist.c +++ b/src/lib/core/strlist.c @@ -47,7 +47,6 @@ void strlist_append(struct StrList **pStrList, char *str) { (*pStrList)->data = tmp; (*pStrList)->data[(*pStrList)->num_inuse] = strdup(str); (*pStrList)->data[(*pStrList)->num_alloc] = NULL; - strcpy((*pStrList)->data[(*pStrList)->num_inuse], str); (*pStrList)->num_inuse++; (*pStrList)->num_alloc++; } -- cgit