summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <ckolumbus@gmx.de>2012-05-02 17:44:23 +0200
committerChris <ckolumbus@gmx.de>2012-05-02 21:22:50 +0200
commit940612e6cb133047ac07b7ce50d9d3bcef3da5b2 (patch)
tree516806ab2b408feaea1bc47192e580b9c2d03e0a
parente0f0d88bc30d9ec0c2ca9f5721e3c8d893ff532d (diff)
downloadsundown-myr-940612e6cb133047ac07b7ce50d9d3bcef3da5b2.tar.gz
BUG FIX: va_list handling for visual studio fixed
-rw-r--r--src/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 3807fb9..47b40ce 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -127,7 +127,9 @@ bufprintf(struct buf *buf, const char *fmt, ...)
if (n < 0) {
#ifdef _MSC_VER
+ va_start(ap, fmt);
n = _vscprintf(fmt, ap);
+ va_end(ap);
#else
return;
#endif