aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
}