summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-06 22:59:05 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-06 22:59:05 -0700
commit1551cf03d4589a87c381232cd7378c4dc459fe09 (patch)
treec88e31d9520ee4810bc8554ddfb936423e78be6c /src/buffer.c
parentdcf112add5861b99b0cb33a9c0c2e8c3edd9c2ad (diff)
parent5fecd3827f2d9c637576dd8616debf4813381981 (diff)
Merge pull request #54 from bryant/ensure-size-typo
fix ENSURE_SIZE to actually check left arg length.
Diffstat (limited to 'src/buffer.c')
-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