> -----Original Message-----
> From: [email protected] On
> Behalf Of Nick Kew
> Sent: Montag, 21. Dezember 2009 10:36
> To: [email protected]
> 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