]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Minor change to prevent invalid code changes.
authorTimo Sirainen <tss@iki.fi>
Tue, 13 Aug 2013 17:59:39 +0000 (20:59 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 13 Aug 2013 17:59:39 +0000 (20:59 +0300)
src/auth/auth-request.c
src/auth/auth-request.h

index 8f31452380a40db6cb669461acbfd7bc2f971b3e..a7470f3819df36975938400e8d28e51f2dc04ee4 100644 (file)
@@ -1891,7 +1891,8 @@ auth_request_str_escape(const char *string,
        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" },
index ba477109c319ca0c46d83c925d7d7dbeba992451..f72d6b5bc235aa561cade1cc458ec0f9153116bb 100644 (file)
@@ -144,7 +144,8 @@ extern unsigned int auth_request_state_count[AUTH_REQUEST_STATE_MAX];
 #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);