mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 21:59:33 +00:00
![]() The functions `git_commit_header_field` and `git_commit_extract_signature` both receive buffers used to hand back the results to the user. While these functions called `git_buf_sanitize` on these buffers, this is not the right thing to do, as it will simply initialize or zero-terminate passed buffers. As we want to overwrite contents, we instead have to call `git_buf_clear` to completely reset them. |
||
---|---|---|
.. | ||
git2 | ||
git2.h |