}
if(memchr(q, 0, n))
disorder_fatal(0, "null character in request body");
- q[n + 1] = 0;
+ q[n] = 0;
*ptrp = q;
if(np)
*np = n;
*/
char *cgi_sgmlquote(const char *src) {
uint32_t *ucs, c;
- int n;
struct dynstr d[1];
struct sink *s;
exit(1);
dynstr_init(d);
s = sink_dynstr(d);
- n = 1;
/* format the string */
while((c = *ucs++)) {
switch(c) {