mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen more than once.
This commit is contained in:
@@ -1992,9 +1992,9 @@ YY_RULE_SETUP
|
||||
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
||||
continue;
|
||||
n += sizeof("Defaults") - 1;
|
||||
if ((deftype = yytext[n]) != '\0') {
|
||||
while (isblank((unsigned char)yytext[++n]))
|
||||
continue;
|
||||
if ((deftype = yytext[n++]) != '\0') {
|
||||
while (isblank((unsigned char)yytext[n]))
|
||||
n++;
|
||||
}
|
||||
BEGIN GOTDEFS;
|
||||
switch (deftype) {
|
||||
|
Reference in New Issue
Block a user