diff --git a/src/suauth.c b/src/suauth.c index 9def76c0..895f1278 100644 --- a/src/suauth.c +++ b/src/suauth.c @@ -84,9 +84,7 @@ int check_su_auth (const char *actual_id, stpcpy(strrspn(temp, " \t"), ""); - posn = 0; - while (temp[posn] == ' ' || temp[posn] == '\t') - posn++; + posn = strspn(temp, " \t"); if (temp[posn] == '#' || temp[posn] == '\0') { continue;