httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [PATCH] Config File Line Continuation (take 3)
Date Mon, 02 Mar 1998 22:11:53 GMT
Ralf S. Engelschall wrote:
> 
> In article <19980302151102.52337@deejai.mch.sni.de> you wrote:
> > On Mon, Mar 02, 1998 at 10:10:43AM +0100, Ralf S. Engelschall wrote:
> >> +            if (cp > cbuf && *(cp-1) == LF) {
> >> +                cp--;
> >> +                if (cp > cbuf && *(cp-1) == CR)
> >> +                    cp--;
> >> +                if (cp > cbuf && *(cp-2) == '\\'
> >                                        ^Isn't this a cp[-1]?
> 
> Ops, yes. The correct line should read:
>                     if (cp > cbuf && *(cp-1) == '\\'
> Thank's for the hint. Fixed.

Except that *(cp-1) is disgusting. It should be cp[-1] like Martin said.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|  Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author    http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message