diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 19:08:42 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 19:08:42 +0000 |
| commit | 394ba911a0d352b7cf7b063ca157c22d2751dcc2 (patch) | |
| tree | dca38af900c6b0fe06b6f87dd8a5a25ef4015116 /src/slave | |
| parent | 6e0cad8cd73331382a69c9350502024cd8067208 (diff) | |
| download | krb5-394ba911a0d352b7cf7b063ca157c22d2751dcc2.tar.gz krb5-394ba911a0d352b7cf7b063ca157c22d2751dcc2.tar.xz krb5-394ba911a0d352b7cf7b063ca157c22d2751dcc2.zip | |
* kpropd.c (authorized_principal): Cast argument to ispace() to int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13376 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/slave')
| -rw-r--r-- | src/slave/ChangeLog | 4 | ||||
| -rw-r--r-- | src/slave/kpropd.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index 5c77df6b0..4a00e3439 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,7 @@ +2001-06-18 Ezra Peisach <epeisach@mit.edu> + + * kpropd.c (authorized_principal): Cast argument to ispace() to int. + 2001-01-30 Ken Raeburn <raeburn@mit.edu> * kpropd.c (load_database): Initialize save_stderr variable. diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index d73f7badf..0e4327f90 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -676,11 +676,11 @@ authorized_principal(context, p, auth_etype) /* if the next character is not whitespace or nul, then the match is only partial. continue on to new lines. */ - if (*ptr && !isspace(*ptr)) + if (*ptr && !isspace((int) *ptr)) continue; /* otherwise, skip trailing whitespace */ - for (; *ptr && isspace(*ptr); ptr++) ; + for (; *ptr && isspace((int) *ptr); ptr++) ; /* now, look for an etype string. if there isn't one, return true. if there is an invalid string, continue. |
