aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-06-02 13:16:43 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-06-02 13:16:43 -0400
commitb45cf2c06ee19d78684920bbc77c1b9460b227f4 (patch)
treea9c8f01bad61fc582cfded1d0193a38bdc1b1655
parent2e8f4e485e6717d910794a7da676fb3f52eb7850 (diff)
downloadstasis-b45cf2c06ee19d78684920bbc77c1b9460b227f4.tar.gz
Replace string functions
-rw-r--r--src/lib/core/wheel.c3
1 files changed, 1 insertions, 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;
}
}