From 394ba911a0d352b7cf7b063ca157c22d2751dcc2 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Jun 2001 19:08:42 +0000 Subject: [PATCH] * 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 --- src/slave/ChangeLog | 4 ++++ 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 + + * kpropd.c (authorized_principal): Cast argument to ispace() to int. + 2001-01-30 Ken Raeburn * 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. -- 2.26.2