From 742afa43af96ca34345003aa3aa1bc7c9a191f86 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Jun 2026 13:01:56 -0400 Subject: Replace string functions --- src/lib/core/github.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit