[dovecot-cvs] dovecot/src/lib strfuncs.c,1.52,1.53
cras at dovecot.org
cras at dovecot.org
Mon Jan 2 12:04:15 EET 2006
- Previous message: [dovecot-cvs] dovecot/src/lib strfuncs.c,1.51,1.52
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c, 1.44,
1.45 mail-index-private.h, 1.57, 1.58 mail-index-sync-ext.c,
1.12, 1.13 mail-index-sync-keywords.c, 1.7,
1.8 mail-index-sync-update.c, 1.87, 1.88
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv23764
Modified Files:
strfuncs.c
Log Message:
t_strarray_join() was broken with input longer than 63 bytes (good thing we
didn't use it in any important places). Patch by Johan Kiviniemi.
Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- strfuncs.c 1 Jan 2006 19:37:56 -0000 1.52
+++ strfuncs.c 2 Jan 2006 10:04:12 -0000 1.53
@@ -601,7 +601,7 @@
for (pos = 0; *arr != NULL; arr++) {
len = strlen(*arr);
needed_space = pos + len + sep_len + 1;
- if (needed_space < alloc_len) {
+ if (needed_space > alloc_len) {
alloc_len = nearest_power(needed_space);
str = t_buffer_reget(str, alloc_len);
}
- Previous message: [dovecot-cvs] dovecot/src/lib strfuncs.c,1.51,1.52
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c, 1.44,
1.45 mail-index-private.h, 1.57, 1.58 mail-index-sync-ext.c,
1.12, 1.13 mail-index-sync-keywords.c, 1.7,
1.8 mail-index-sync-update.c, 1.87, 1.88
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list