Changeset 890

Show
Ignore:
Timestamp:
08/10/07 12:16:44 (1 year ago)
Author:
adefacc
Message:

fix cherokee_buffer_read_from_fd()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r889 r890  
    1717            (this is really required because now we have 
    1818             cherokee_buffer_ensure_size() so the old semantic of 
    19              cherokee_buffer_ensure_addlen() had to go anyway). 
     19             cherokee_buffer_ensure_addlen() had to go anyway); 
     20 
     21          - cherokee_buffer_read_from_fd(), now we can read full size 
     22            instead of size - 1, so it fixes the case of a read size 
     23            of 1 byte, because now the function can return ret_ok 
     24            instead of (wrong) ret_eof (theoretical case because 
     25            in practice there is only one caller that passes 4096 
     26            as read size). 
    2027 
    21282007-08-10  A.D.F  <adefacc@tin.it> 
  • cherokee/trunk/cherokee/buffer.c

    r889 r890  
    893893        /* Read data at the end of the buffer 
    894894         */ 
    895         len = read (fd, &(buf->buf[buf->len]), size - 1); 
     895        len = read (fd, &(buf->buf[buf->len]), size); 
    896896        if (len < 0) { 
    897897                /* On error