[dovecot-cvs] dovecot/src/lib file-cache.c,1.7,1.8
cras at dovecot.org
cras at dovecot.org
Sat May 14 14:32:47 EEST 2005
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache-fields.c, 1.13,
1.14 mail-cache-private.h, 1.24, 1.25 mail-cache-transaction.c,
1.41, 1.42 mail-cache.c, 1.68, 1.69
- Next message: [dovecot-cvs] dovecot/src/lib file-cache.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv6906/lib
Modified Files:
file-cache.c
Log Message:
fix
Index: file-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/file-cache.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- file-cache.c 14 May 2005 11:29:07 -0000 1.7
+++ file-cache.c 14 May 2005 11:32:45 -0000 1.8
@@ -172,8 +172,9 @@
return;
max_size = cache->mmap_length - offset;
- memcpy(PTR_OFFSET(cache->mmap_base, offset),
- data, I_MIN(size, max_size));
+ if (max_size > size)
+ size = max_size;
+ memcpy(PTR_OFFSET(cache->mmap_base, offset), data, size);
/* mark fully written pages cached */
if (size >= page_size) {
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache-fields.c, 1.13,
1.14 mail-cache-private.h, 1.24, 1.25 mail-cache-transaction.c,
1.41, 1.42 mail-cache.c, 1.68, 1.69
- Next message: [dovecot-cvs] dovecot/src/lib file-cache.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list