From 8967b44457525f9c67ede1453aca21240384b68e Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Fri, 24 Sep 1993 12:08:36 +0000 Subject: Changed index() to strchr() [ANSI] --- server/acl_files.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/acl_files.c') diff --git a/server/acl_files.c b/server/acl_files.c index 8cd5984..3932e52 100644 --- a/server/acl_files.c +++ b/server/acl_files.c @@ -71,8 +71,8 @@ acl_canonicalize_principal(principal, canon) char *dot, *atsign; int len; - dot = (char *) index(principal, INST_SEP); - atsign = (char *) index(principal, REALM_SEP); + dot = (char *) strchr(principal, INST_SEP); + atsign = (char *) strchr(principal, REALM_SEP); /* Maybe we're done already */ if(dot != NULL && atsign != NULL) { @@ -512,8 +512,8 @@ acl_check(acl, principal) return 1; /* Try the wildcards */ - realm = (char *) index(canon, REALM_SEP); - *((char *)index(canon, INST_SEP)) = '\0'; /* Chuck the instance */ + realm = (char *) strchr(canon, REALM_SEP); + *((char *)strchr(canon, INST_SEP)) = '\0'; /* Chuck the instance */ sprintf(buf, "%s.*%s", canon, realm); if(acl_exact_match(acl, buf)) return 1; -- cgit v1.2.3