summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d39828e..f74c8c6 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -82,11 +82,6 @@ void cmark_strbuf_grow(cmark_strbuf *buf, bufsize_t target_size)
buf->asize = (bufsize_t)new_size;
buf->ptr = new_ptr;
-
- /* truncate the existing buffer size if necessary */
- if (buf->size >= buf->asize)
- buf->size = buf->asize - 1;
- buf->ptr[buf->size] = '\0';
}
size_t cmark_strbuf_len(const cmark_strbuf *buf)