regex_t *t;
int i, l;
txt res;
- char *p;
+ char *b0;
const char *s;
unsigned u, x;
if (i == REG_NOMATCH)
return(str);
+VSL(SLT_Debug, sp->fd, "REGSUB {");
u = WS_Reserve(sp->http->ws, 0);
- res.e = res.b = p = sp->http->ws->f;
+ res.e = res.b = b0 = sp->http->ws->f;
res.e += u;
do {
return (str);
}
Tcheck(res);
- WS_Release(sp->http->ws, p - res.b);
- return (p);
+ WS_Release(sp->http->ws, b0 - res.b);
+VSL(SLT_Debug, sp->fd, "REGSUB }");
+ return (b0);
}
WS_Release(struct ws *ws, unsigned bytes)
{
WS_Assert(ws);
+ assert(bytes <= ws->e - ws->f);
DSL(0x02, SLT_Debug, 0, "WS_Release(%p, %u)", ws, bytes);
assert(ws->r != NULL);
assert(ws->f + bytes <= ws->r);