*b++ = v;
}
if (unlikely(cnt == l))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
l -= cnt;
bdirect_read_commit(f, src);
src_len = bdirect_read_prepare(f, &src);
if (cnt == buf_len)
{
if (unlikely(len == limit))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
bb_do_grow(bb, len + 1);
buf = bb->ptr + len;
buf_len = MIN(bb->len, limit) - len;
b++;
}
if (unlikely(cnt == l))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
l -= cnt;
bdirect_read_commit(f, src);
src_len = bdirect_read_prepare(f, &src);