[Github-comments] [geany/geany-plugins] git-changebar fails to compile with libgit2-1.4.0 (Issue #1164)
David Runge
notifications at xxxxx
Fri Feb 18 22:11:04 UTC 2022
It appears that `git_buf` has undergone a major rewrite in https://github.com/libgit2/libgit2/pull/6078
The following fixes this for my build, but I admit that I have no clue what I am doing here and this could not be the way to fix this:
```
diff --git i/git-changebar/src/gcb-plugin.c w/git-changebar/src/gcb-plugin.c
index f8ce20cd..4488b22f 100644
--- i/git-changebar/src/gcb-plugin.c
+++ w/git-changebar/src/gcb-plugin.c
@@ -216,7 +216,7 @@ static int
gcb_git_buf_grow (git_buf *buf,
size_t target_size)
{
- if (buf->asize == 0) {
+ if (buf->reserved == 0) {
if (target_size == 0) {
target_size = buf->size;
}
@@ -234,7 +234,7 @@ buf_zero (git_buf *buf)
if (buf) {
buf->ptr = NULL;
buf->size = 0;
- buf->asize = 0;
+ buf->reserved = 0;
}
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1164#issuecomment-1045259134
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1164/1045259134 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220218/7de61a28/attachment.htm>
More information about the Github-comments
mailing list