mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 10:28:56 +00:00
buffer: Null terminate on rtrim
This commit is contained in:
parent
44b1ff4c12
commit
eb8f90e523
@ -386,4 +386,6 @@ void git_buf_rtrim(git_buf *buf)
|
||||
|
||||
buf->size--;
|
||||
}
|
||||
|
||||
buf->ptr[buf->size] = '\0';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user