aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/github.c2
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);