From 3d88f10983e6517a2e8993a2ada0b3fd335f3c61 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 6 Jan 2016 21:05:56 +0100 Subject: [PATCH] __acltotext: Always append NUL * sec_acl.cc (__acltotext): Append NUL unconditionally. Signed-off-by: Corinna Vinschen --- winsup/cygwin/sec_acl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 052856ffd..399324929 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -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); }