summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-02 14:44:22 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-02 14:44:22 -0700
commitc744346e507e7f905d4b401de78db4404068a43c (patch)
tree516806ab2b408feaea1bc47192e580b9c2d03e0a
parente0f0d88bc30d9ec0c2ca9f5721e3c8d893ff532d (diff)
parent940612e6cb133047ac07b7ce50d9d3bcef3da5b2 (diff)
downloadsundown-myr-c744346e507e7f905d4b401de78db4404068a43c.tar.gz
Merge pull request #110 from ckolumbus/ckol-bugfix
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