diff options
Diffstat (limited to 'src/sliding_buffer.c')
-rw-r--r-- | src/sliding_buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sliding_buffer.c b/src/sliding_buffer.c index be4ea88..1adade5 100644 --- a/src/sliding_buffer.c +++ b/src/sliding_buffer.c @@ -31,6 +31,7 @@ #include <fcntl.h> #include "sliding_buffer.h" +#include "h_error.h" /* * initialize a sliding buffer structure @@ -129,9 +130,9 @@ s_buffer_read (sliding_buffer_t * sbuf, char *matchstr) pos = 0; len = sbuf->bufsize - (int) (sbuf->ptr - sbuf->buf) - strlen (matchstr); /* On a short read or very long matchstr, its possible to force len < 0 - That is bad. */ - if ( len < 0 ) i + if ( len < 0 ) { - die_with_message ( NULL, NULL, 'Short Read or MIME decode failure' ); + die_with_message ( NULL, NULL, "Short Read or MIME decode failure" ); } while (memcmp (matchstr, sbuf->ptr + pos, strlen (matchstr)) && (pos < len)) { |