cmark
My personal build of CMark ✏️
- Commit
- 485ef21b95e257e9d9cbcaa804c3c164f1f49a80
- Parent
- af0c1731596a35c271a49987c8e477f80c252971
- Author
- Nick Wellnhofer <wellnhofer@aevum.de>
- Date
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
1 file changed, 1 insertion, 4 deletions
Status |
File Name |
N° Changes |
Insertions |
Deletions |
Modified |
src/buffer.c |
5 |
1 |
4 |
diff --git 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) {