diff options
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 448ca7d..c7b784a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -166,13 +166,10 @@ int cmark_strbuf_vprintf(strbuf *buf, const char *format, va_list ap) ENSURE_SIZE(buf, expected_size); while (1) { - va_list args; - va_copy(args, ap); - len = vsnprintf( (char *)buf->ptr + buf->size, buf->asize - buf->size, - format, args + format, ap ); if (len < 0) { |