From b45cf2c06ee19d78684920bbc77c1b9460b227f4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Jun 2026 13:16:43 -0400 Subject: Replace string functions --- src/lib/core/wheel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/core/wheel.c b/src/lib/core/wheel.c index e94060a..bb8d106 100644 --- a/src/lib/core/wheel.c +++ b/src/lib/core/wheel.c @@ -1159,8 +1159,7 @@ int wheel_get_entry_point(struct Wheel *pkg, const char *filename) { const size_t start = strcspn((char *) item, "[") + 1; if (start) { const size_t len = strcspn((char *) item, "]"); - strncpy(section, item + start, len - start); - section[len - start] = '\0'; + safe_strncpy(section, item + start, len - start); continue; } } -- cgit