buf_cat
if (buf_cat(&parser->val, parser->currhdr) == -1)
if (buf_cat(&parser->val, "\n") == -1 ||
buf_cat(&parser->val, line) == -1)
static int buf_cat(struct buf *, const char *);