[dovecot-cvs] dovecot/src/lib buffer.c,1.9,1.10
cras at procontrol.fi
cras at procontrol.fi
Mon Aug 18 07:20:29 EEST 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv12951/lib
Modified Files:
buffer.c
Log Message:
Inserting to end of buffer or past it didn't work
Index: buffer.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/buffer.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- buffer.c 15 May 2003 19:22:22 -0000 1.9
+++ buffer.c 18 Aug 2003 03:20:27 -0000 1.10
@@ -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 */
More information about the dovecot-cvs
mailing list