From: Timo Sirainen Date: Mon, 15 Mar 2021 10:53:19 +0000 (+0200) Subject: auth: test-auth-cache - Fix auth_request_var_expand_static_tab[] X-Git-Tag: 2.3.15~184 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=718e9c9fb1baa8dd9f52f2968570a2ac7b242aa8;p=thirdparty%2Fdovecot%2Fcore.git auth: test-auth-cache - Fix auth_request_var_expand_static_tab[] Its size is explicitly set in .h file, so it should be in .c file as well. --- diff --git a/src/auth/test-auth-cache.c b/src/auth/test-auth-cache.c index 7e10d83973..ea71b1baff 100644 --- a/src/auth/test-auth-cache.c +++ b/src/auth/test-auth-cache.c @@ -6,7 +6,8 @@ #include "auth-cache.h" #include "test-common.h" -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] = { /* these 3 must be in this order */ { 'u', NULL, "user" }, { 'n', NULL, "username" },