diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-23 01:23:20 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-23 01:23:20 +0000 |
commit | ac676a111684706b7e97927f12d29b25c5205078 (patch) | |
tree | 944d313630072da47126807a18614efb96438d64 /contrib/openpam/lib/pam_start.c | |
parent | 5c1eca55510ced8982522fa919a1ad4349eb96f2 (diff) |
Diffstat (limited to 'contrib/openpam/lib/pam_start.c')
-rw-r--r-- | contrib/openpam/lib/pam_start.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/openpam/lib/pam_start.c b/contrib/openpam/lib/pam_start.c index ff9cc32ec5a5e..a059661595ab9 100644 --- a/contrib/openpam/lib/pam_start.c +++ b/contrib/openpam/lib/pam_start.c @@ -132,7 +132,7 @@ _pam_read_policy_file(pam_handle_t *pamh, /* strip comments and trailing whitespace */ if ((p = strchr(buf, '#')) != NULL) len = p - buf ? p - buf - 1 : p - buf; - while (len > 0 && isspace(buf[len])) + while (len > 0 && isspace(buf[len - 1])) --len; if (len == 0) continue; |