httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plüm, Rüdiger, VF-Group" <ruediger.pl...@vodafone.com>
Subject RE: svn commit: r892678 - in /httpd/httpd/trunk: CHANGES server/protocol.c
Date Mon, 21 Dec 2009 09:46:43 GMT
 

> -----Original Message-----
> From: Nicholas.Kew@Sun.COM On 
> Behalf Of Nick Kew
> Sent: Montag, 21. Dezember 2009 10:36
> To: dev@httpd.apache.org
> Subject: Re: svn commit: r892678 - in /httpd/httpd/trunk: 
> CHANGES server/protocol.c
> 
> 
> On 21 Dec 2009, at 07:22, Ruediger Pluem wrote:
> 
> > Why bytes_handled - 1 and not bytes_handled?
> 
> Terminating null.
> 
> (we know the last byte actually handled was LF because we got 
> a line-end).

Right, but IMHO bytes_handled does not consider the terminating null,
but only the length of the real payload:

    *last_char = '\0';
    bytes_handled = last_char - *s;

If the string would be empty bytes_handled would be 0.



Regards

Rüdiger


Mime
View raw message