diff --git a/src/document.c b/src/document.c index e1c1edd..74e285b 100644 --- a/src/document.c +++ b/src/document.c @@ -336,6 +336,7 @@ static inline void replace_spacing(hoedown_buffer *ob, const uint8_t *data, size_t size) { size_t i = 0, mark; + hoedown_buffer_grow(ob, size); while (1) { mark = i; while (i < size && data[i] != '\n') i++;