- Commit
- 1551cf03d4589a87c381232cd7378c4dc459fe09
- Parent
- dcf112add5861b99b0cb33a9c0c2e8c3edd9c2ad
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Merge pull request #54 from bryant/ensure-size-typo
fix ENSURE_SIZE to actually check left arg length.
My personal build of CMark ✏️
Merge pull request #54 from bryant/ensure-size-typo
fix ENSURE_SIZE to actually check left arg length.
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/buffer.c | 2 | 1 | 1 |
diff --git 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