diff options
Diffstat (limited to 'src/notes.c')
-rw-r--r-- | src/notes.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/notes.c b/src/notes.c index 046a91614..4b15925fd 100644 --- a/src/notes.c +++ b/src/notes.c @@ -323,11 +323,10 @@ static int note_new( git_signature_dup(¬e->committer, git_commit_committer(commit)) < 0) return -1; - note->message = git__strdup((char *)git_blob_rawcontent(blob)); + note->message = git__strndup(git_blob_rawcontent(blob), git_blob_rawsize(blob)); GITERR_CHECK_ALLOC(note->message); *out = note; - return 0; } |