Permalink
Browse files

Fixes an out-by-one bug. Thanks a million to Martin Szulecki for

reporting the problem.

git-svn-id: svn://cherokee-project.com/cherokee/trunk@6816 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent b0af2aa commit dc3546761e982d9d9f49338765dce56ed8de167c @alobbs alobbs committed Aug 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cherokee/handler_file.c
View
@@ -855,7 +855,7 @@ cherokee_handler_file_step (cherokee_handler_file_t *fhdl, cherokee_buffer_t *bu
/* Ensure there's enough memory
*/
- cherokee_buffer_ensure_size (buffer, size);
+ cherokee_buffer_ensure_size (buffer, size + 1);
/* Read
*/

0 comments on commit dc35467

Please sign in to comment.