Fix missing NUL termination of buffer

This commit is contained in:
Russell Belfer 2012-07-10 23:51:32 -07:00
parent 991a56c704
commit 54e29b9380

View File

@ -172,6 +172,8 @@ int git_buf_puts_escaped(
} }
} }
buf->ptr[buf->size] = '\0';
return 0; return 0;
} }