Fix missing NUL termination of buffer
diff --git a/src/buffer.c b/src/buffer.c
index d16b171..5d54ee1 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -172,6 +172,8 @@ int git_buf_puts_escaped(
}
}
+ buf->ptr[buf->size] = '\0';
+
return 0;
}