Changeset 660
- Timestamp:
- 02/28/07 17:59:25 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/buffer.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r659 r660 1 1 2007-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. 2 7 3 8 * cherokee/connection.c (cherokee_connection_get_dir_entry): I cherokee/trunk/cherokee/buffer.c
r656 r660 888 888 /* Read data at the end of the buffer 889 889 */ 890 len = read (fd, &(buf->buf[buf->len]), size );890 len = read (fd, &(buf->buf[buf->len]), size - 1); 891 891 if (len < 0) { 892 892 /* On error