<p></p>
<p dir="auto">It appears that <code>git_buf</code> has undergone a major rewrite in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1010173464" data-permission-text="Title is private" data-url="https://github.com/libgit2/libgit2/issues/6078" data-hovercard-type="pull_request" data-hovercard-url="/libgit2/libgit2/pull/6078/hovercard" href="https://github.com/libgit2/libgit2/pull/6078">libgit2/libgit2#6078</a></p>
<p dir="auto">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:</p>
<pre><code>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;
   }
 }
 
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/1164#issuecomment-1045259134">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6OWDV6RO7PSFOI23TU327XRANCNFSM5OY4WGLA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJZJPQDZOFG6HXCUBBDU327XRA5CNFSM5OY4WGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHZGWG7Q.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany-plugins/issues/1164/1045259134</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1164#issuecomment-1045259134",
"url": "https://github.com/geany/geany-plugins/issues/1164#issuecomment-1045259134",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>