diff options
-rw-r--r-- | source3/lib/sysacls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index b0a3479a62..592aef6d43 100644 --- a/source3/lib/sysacls.c +++ b/source3/lib/sysacls.c @@ -238,8 +238,9 @@ char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p) } } - slprintf(&text[len], nbytes-1, "%s:%s:%s\n", tag, id, perms); - len += nbytes - 1; + + slprintf(&text[len], nbytes, "%s:%s:%s\n", tag, id, perms); + len += (nbytes - 1); } if (len_p) |