dovecot-2.2: Minor change to prevent invalid code changes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 13 21:00:07 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/2cbf5d7c7e4c
changeset: 16693:2cbf5d7c7e4c
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 13 20:59:39 2013 +0300
description:
Minor change to prevent invalid code changes.

diffstat:

 src/auth/auth-request.c |  3 ++-
 src/auth/auth-request.h |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 40110f35ca64 -r 2cbf5d7c7e4c src/auth/auth-request.c
--- a/src/auth/auth-request.c	Tue Aug 13 20:58:56 2013 +0300
+++ b/src/auth/auth-request.c	Tue Aug 13 20:59:39 2013 +0300
@@ -1891,7 +1891,8 @@
 	return str_escape(string);
 }
 
-const struct var_expand_table auth_request_var_expand_static_tab[] = {
+const struct var_expand_table
+auth_request_var_expand_static_tab[AUTH_REQUEST_VAR_TAB_COUNT+1] = {
 	{ 'u', NULL, "user" },
 	{ 'n', NULL, "username" },
 	{ 'd', NULL, "domain" },
diff -r 40110f35ca64 -r 2cbf5d7c7e4c src/auth/auth-request.h
--- a/src/auth/auth-request.h	Tue Aug 13 20:58:56 2013 +0300
+++ b/src/auth/auth-request.h	Tue Aug 13 20:59:39 2013 +0300
@@ -144,7 +144,8 @@
 #define AUTH_REQUEST_VAR_TAB_USERNAME_IDX 1
 #define AUTH_REQUEST_VAR_TAB_DOMAIN_IDX 2
 #define AUTH_REQUEST_VAR_TAB_COUNT 25
-extern const struct var_expand_table auth_request_var_expand_static_tab[];
+extern const struct var_expand_table
+auth_request_var_expand_static_tab[AUTH_REQUEST_VAR_TAB_COUNT+1];
 
 struct auth_request *
 auth_request_new(const struct mech_module *mech);


More information about the dovecot-cvs mailing list