From: Todd C. Miller Date: Tue, 27 Mar 2012 16:24:39 +0000 (-0400) Subject: Fix matching of "Path askpass" and "Path noexec" X-Git-Tag: SUDO_1_8_5~1^2~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b3d118f62d80e65d912dfcd6c96d212060358e2;p=sudo Fix matching of "Path askpass" and "Path noexec" --- diff --git a/common/sudo_conf.c b/common/sudo_conf.c index 3b7a0cc4e..238d21f26 100644 --- a/common/sudo_conf.c +++ b/common/sudo_conf.c @@ -105,10 +105,10 @@ static struct sudo_conf_data { NULL, { #define SUDO_CONF_ASKPASS_IDX 0 - { "askpass", sizeof("askpass"), _PATH_SUDO_ASKPASS }, + { "askpass", sizeof("askpass") - 1, _PATH_SUDO_ASKPASS }, #ifdef _PATH_SUDO_NOEXEC #define SUDO_CONF_NOEXEC_IDX 1 - { "noexec", sizeof("noexec"), _PATH_SUDO_NOEXEC }, + { "noexec", sizeof("noexec") - 1, _PATH_SUDO_NOEXEC }, #endif { NULL } }