Commit eb8f90e5 by Vicent Martí

buffer: Null terminate on rtrim

parent 44b1ff4c
...@@ -386,4 +386,6 @@ void git_buf_rtrim(git_buf *buf) ...@@ -386,4 +386,6 @@ void git_buf_rtrim(git_buf *buf)
buf->size--; buf->size--;
} }
buf->ptr[buf->size] = '\0';
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment