Mercurial > dovecot > core-2.2
changeset 1684:8ae128679e05 HEAD
Inserting to end of buffer or past it didn't work
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 18 Aug 2003 06:20:27 +0300 |
parents | cc366700adfc |
children | 54a6dd88aedd |
files | src/lib/buffer.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/buffer.c Sun Aug 17 03:00:13 2003 +0300 +++ b/src/lib/buffer.c Mon Aug 18 06:20:27 2003 +0300 @@ -237,7 +237,7 @@ /* move_size == number of bytes we have to move forward to make space */ move_size = I_MIN(buf->used, buf->limit) - buf->start_pos; if (pos >= move_size) - return 0; + return buffer_write(buf, pos, data, data_size); move_size -= pos; /* size == number of bytes we want to modify after pos */