X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/9e89d26a8e1378f17a19da072c5f7308ddaf24f1..5f624baebe43889bb2810720cb9cc6d0812f49cb:/lib/cgi.c diff --git a/lib/cgi.c b/lib/cgi.c index 9fd42f1..023c5bb 100644 --- a/lib/cgi.c +++ b/lib/cgi.c @@ -75,7 +75,7 @@ static void cgi__input(char **ptrp, size_t *np) { } 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;