dovecot-2.0-sslstream: array_foreach_modifiable() was broken in ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:59 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/1c089f4f3e48
changeset: 10249:1c089f4f3e48
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 05 12:34:05 2009 -0500
description:
array_foreach_modifiable() was broken in non-C99 compilers.
Patch by Apple.

diffstat:

1 file changed, 1 insertion(+), 2 deletions(-)
src/lib/array.h |    3 +--

diffs (13 lines):

diff -r df908e821744 -r 1c089f4f3e48 src/lib/array.h
--- a/src/lib/array.h	Wed Nov 04 18:51:10 2009 -0500
+++ b/src/lib/array.h	Thu Nov 05 12:34:05 2009 -0500
@@ -72,8 +72,7 @@
 	     (elem)++)
 #  define array_foreach_modifiable(array, elem) \
 	for (elem = ARRAY_TYPE_CAST_MODIFIABLE(array) \
-			buffer_get_modifiable_data((array)->arr.buffer, NULL) + \
-			(array)->arr.buffer->used; \
+			buffer_get_modifiable_data((array)->arr.buffer, NULL); \
 	     elem != CONST_PTR_OFFSET(*(array)->v, (array)->arr.buffer->used); \
 	     (elem)++)
 #endif


More information about the dovecot-cvs mailing list