httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsuyoshi SASAMOTO <nazon...@super.win.ne.jp>
Subject Re^2: [patch] perchild.c
Date Mon, 02 Aug 2004 03:13:30 GMT
>(b) I omitted the unrelated fix which was part of your patch; care to
>provide an explanation?

Sorry...
----------------------------------------------------------------------
    body = strchr(iov.iov_base, 0); // `body` would be `headers + strlen(headers)`
    if (!body) {
        return 1;
    }

    body++;                         // `body` would be `headers + strlen(headers) + 1`
    bodylen = strlen(body);

    headers = iov.iov_base;
    headerslen = body - headers;    // `body - headers` is `strlen(headers) + 1` !!!
----------------------------------------------------------------------
So, `headerslen` should be `body - 1 - headers`.


Tsuyoshi SASAMOTO
nazonazo@super.win.ne.jp

Mime
View raw message