From 1c6df2368cf2f2e322972ff856414c69d7019af1 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 8 Aug 2001 03:38:45 +0000 Subject: [PATCH] aix-needs-string-h-in-aclproc-20010807 and we get back to the crux of the issue --- src/libacl/aclprocs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libacl/aclprocs.c b/src/libacl/aclprocs.c index 357734484..055148045 100644 --- a/src/libacl/aclprocs.c +++ b/src/libacl/aclprocs.c @@ -24,6 +24,9 @@ RCSID("$Header$"); #else #include #endif +#ifdef HAVE_STRING_H +#include +#endif #include #include #include @@ -248,14 +251,14 @@ struct acl_accessList **acl; if (sscanf(nextc, "%s\t%d\n", lnames.namelist_val[i], &k) != 2) return(-1); (*acl)->entries[i].rights = k; - nextc = (strchr(nextc, '\n')); + nextc = strchr(nextc, '\n'); nextc ++; /* 1 + index can cast ptr to integer */ } j=i; for (i = (*acl)->total - 1; i >= (*acl)->total - (*acl)->negative; i--,j++) { if (sscanf(nextc, "%s\t%d\n", lnames.namelist_val[j], &((*acl)->entries[j].rights)) != 2) return(-1); - nextc = (strchr(nextc, '\n')); + nextc = strchr(nextc, '\n'); nextc ++; } lids.idlist_len = 0; -- 2.39.5