diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:01:56 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:01:56 -0400 |
| commit | 742afa43af96ca34345003aa3aa1bc7c9a191f86 (patch) | |
| tree | 4fb3039b37ff7334ea747777b63f247ca980f625 | |
| parent | c32008b17a565b55717437b48474f7989ca0af8a (diff) | |
| download | stasis-742afa43af96ca34345003aa3aa1bc7c9a191f86.tar.gz | |
Replace string functions
| -rw-r--r-- | src/lib/core/github.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/github.c b/src/lib/core/github.c index 992ab32..6a8d9e9 100644 --- a/src/lib/core/github.c +++ b/src/lib/core/github.c @@ -113,7 +113,7 @@ int get_github_release_notes(const char *api_token, const char *repo, const char // Extract release notes *output = calloc(strlen(data_offset) + 1, sizeof(**output)); // Copy output (including terminator) - strncpy(*output, data_offset, strlen(data_offset) + 1); + safe_strncpy(*output, data_offset, strlen(data_offset) + 1); } else if ((data_offset = strstr(line, field_message))) { // Skip past the message field data_offset += strlen(field_message); |
