httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: [PATCH] CAN-2004-0942 fix
Date Wed, 03 Nov 2004 20:35:02 GMT
On Wed, Nov 03, 2004 at 01:39:20PM -0500, Bill Stoddard wrote:
> Joe Orton wrote:
> 
> >+    /* Now NUL-terminate the string at the end of the line; 
> >+     * if the last-but-one character is a CR, terminate there */
> >+    if (last_char > *s && last_char[-1] == APR_ASCII_CR) {
> 
> last_char[-1]... yack, that's just nasty syntax if you ask me.

Succinct and easier to parse than *(last_char - 1) if you ask me...

Mime
View raw message