summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbryant <bryant@defrag.in>2015-06-06 22:20:30 -0400
committerbryant <bryant@defrag.in>2015-06-06 22:20:30 -0400
commit5fecd3827f2d9c637576dd8616debf4813381981 (patch)
treec521d6e497141d27adb96cebd6efda2205ed4ff7
parent966898e10d7ecc61d2e0f956197944626e059ec2 (diff)
fix ENSURE_SIZE to actually check left arg length.
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2b7f062..cb6af42 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -16,7 +16,7 @@ unsigned char cmark_strbuf__initbuf[1];
unsigned char cmark_strbuf__oom[1];
#define ENSURE_SIZE(b, d) \
- if ((d) > buf->asize && cmark_strbuf_grow(b, (d)) < 0) \
+ if ((d) > b->asize && cmark_strbuf_grow(b, (d)) < 0) \
return -1;
#ifndef MIN