__acltotext: Always append NUL

* sec_acl.cc (__acltotext): Append NUL unconditionally.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-01-06 21:05:56 +01:00
parent 9ddf063921
commit 3d88f10983
1 changed files with 1 additions and 1 deletions

View File

@ -1699,8 +1699,8 @@ __acltotext (aclent_t *aclbufp, int aclcnt, const char *prefix, char separator,
{
_CHK (1);
*bufp++ = separator;
*bufp++ = '\0';
}
*bufp = '\0';
return strdup (buf);
}