View | Details | Raw Unified | Return to bug 64273
Collapse All | Expand All

(-)apr-trunk/buckets/apr_brigade.c (-1 / +3 lines)
Lines 359-365 Link Here
359
        pos = memchr(str, APR_ASCII_LF, len);
359
        pos = memchr(str, APR_ASCII_LF, len);
360
        /* We found a match. */
360
        /* We found a match. */
361
        if (pos != NULL) {
361
        if (pos != NULL) {
362
            apr_bucket_split(e, pos - str + 1);
362
            if ((pos - str + 1) < e->length) {
363
                apr_bucket_split(e, pos - str + 1);
364
            }
363
            APR_BUCKET_REMOVE(e);
365
            APR_BUCKET_REMOVE(e);
364
            APR_BRIGADE_INSERT_TAIL(bbOut, e);
366
            APR_BRIGADE_INSERT_TAIL(bbOut, e);
365
            return APR_SUCCESS;
367
            return APR_SUCCESS;

Return to bug 64273