From: Todd C. Miller Date: Wed, 20 Jan 2016 22:09:32 +0000 (-0700) Subject: Fix off by one error in new SET_FLAG macro. X-Git-Tag: SUDO_1_8_16^2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bae35c05c73e85075c38a4f6cb860aa48f4bed2;p=sudo Fix off by one error in new SET_FLAG macro. --- diff --git a/src/sudo.c b/src/sudo.c index eaf05db8f..d11a88ae2 100644 --- a/src/sudo.c +++ b/src/sudo.c @@ -596,7 +596,7 @@ command_info_to_details(char * const info[], struct command_details *details) } #define SET_FLAG(s, n) \ if (strncmp(s, info[i], sizeof(s) - 1) == 0) { \ - switch (sudo_strtobool(info[i] + sizeof(s))) { \ + switch (sudo_strtobool(info[i] + sizeof(s) - 1)) { \ case true: \ SET(details->flags, n); \ break; \