commit db1e231512cf9f4d702fcc3668e4e9a517ecee6f from: Omar Polo date: Tue Mar 02 13:35:19 2021 UTC update the length in set_buf this caused a bug with long lines commit - b5edc2ff6fd5824b10356acaa56ef228b0148c26 commit + db1e231512cf9f4d702fcc3668e4e9a517ecee6f blob - 71dc1c2a3f2bc50932abd94c2f58a3a79d759729 blob + 58449fbf3f84e94d22c7a8d99f39a5fd3185a91d --- gemtext.c +++ gemtext.c @@ -354,6 +354,7 @@ set_buf(struct parser *p, const char *buf, size_t len) if ((p->buf = calloc(1, len)) == NULL) return 0; memcpy(p->buf, buf, len); + p->len = len; return 1; }