Changeset 660

Show
Ignore:
Timestamp:
02/28/07 17:59:25 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r659 r660  
    112007-02-28  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/buffer.c (cherokee_buffer_read_from_fd): It was reading 
     4        too much. This function adds a EOS character at the end of the 
     5        buffer, so the read() call can use all the buffer but the last 
     6        characted. That is reserved for the \0. Fixed. 
    27 
    38        * cherokee/connection.c (cherokee_connection_get_dir_entry): I 
  • cherokee/trunk/cherokee/buffer.c

    r656 r660  
    888888        /* Read data at the end of the buffer 
    889889         */ 
    890         len = read (fd, &(buf->buf[buf->len]), size); 
     890        len = read (fd, &(buf->buf[buf->len]), size - 1); 
    891891        if (len < 0) { 
    892892                /* On error