From 485ef21b95e257e9d9cbcaa804c3c164f1f49a80 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 16 Nov 2014 14:29:08 +0100 Subject: Remove unneeded va_copy va_copy isn't needed here. See http://stackoverflow.com/questions/26953289 Remove it because it isn't part of C89 and not implemented by MSVC. --- src/buffer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3