diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:16:43 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:16:43 -0400 |
| commit | b45cf2c06ee19d78684920bbc77c1b9460b227f4 (patch) | |
| tree | a9c8f01bad61fc582cfded1d0193a38bdc1b1655 /src | |
| parent | 2e8f4e485e6717d910794a7da676fb3f52eb7850 (diff) | |
| download | stasis-b45cf2c06ee19d78684920bbc77c1b9460b227f4.tar.gz | |
Replace string functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/wheel.c | 3 |
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; } } |
