diff options
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r-- | winsup/cygwin/sec_acl.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 348f0bc..614bc50 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -1501,7 +1501,7 @@ permfromstr (char *perm) } extern "C" aclent_t * -aclfromtext32 (char *acltextp, int *) +aclfromtext32 (const char *acltextp, int *aclcnt) { if (!acltextp || strlen (acltextp) > NT_MAX_PATH) { @@ -1610,7 +1610,11 @@ aclfromtext32 (char *acltextp, int *) } aclent_t *aclp = (aclent_t *) malloc (pos * sizeof (aclent_t)); if (aclp) - memcpy (aclp, lacl, pos * sizeof (aclent_t)); + { + memcpy (aclp, lacl, pos * sizeof (aclent_t)); + if (aclcnt) + *aclcnt = pos; + } return aclp; } |