2
0
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:
Todd C. Miller
2011-03-31 12:48:01 -04:00
parent 02f0775feb
commit ca32055fd8
2 changed files with 6 additions and 6 deletions

View File

@@ -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) {