buffer: Null terminate on rtrim

This commit is contained in:
Vicent Martí 2012-02-27 17:22:51 +01:00
parent 44b1ff4c12
commit eb8f90e523

View File

@ -386,4 +386,6 @@ void git_buf_rtrim(git_buf *buf)
buf->size--; buf->size--;
} }
buf->ptr[buf->size] = '\0';
} }