diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 14:29:08 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:33:44 +0100 |
commit | 485ef21b95e257e9d9cbcaa804c3c164f1f49a80 (patch) | |
tree | 9e63245efe05067c70f312dd90dde0db59baf7c0 /src | |
parent | af0c1731596a35c271a49987c8e477f80c252971 (diff) |
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.
Diffstat (limited to 'src')
-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) { |