diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-06-06 22:59:05 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-06-06 22:59:05 -0700 |
commit | 1551cf03d4589a87c381232cd7378c4dc459fe09 (patch) | |
tree | c88e31d9520ee4810bc8554ddfb936423e78be6c /src/buffer.c | |
parent | dcf112add5861b99b0cb33a9c0c2e8c3edd9c2ad (diff) | |
parent | 5fecd3827f2d9c637576dd8616debf4813381981 (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.c | 2 |
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 |