aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-10-18 01:44:55 +0000
committerChristopher Faylor <me@cgf.cx>2004-10-18 01:44:55 +0000
commit0ffa77a9f51c5c7d73da410534d9114a290370f5 (patch)
treea9374fa52a8e42ae39659dffc1e7ea61c582a2dd
parent0597641a7470e54d8aed7c6baa1082d5f2c0d7d9 (diff)
downloadnewlib-0ffa77a9f51c5c7d73da410534d9114a290370f5.zip
newlib-0ffa77a9f51c5c7d73da410534d9114a290370f5.tar.gz
newlib-0ffa77a9f51c5c7d73da410534d9114a290370f5.tar.bz2
* cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
-rw-r--r--winsup/utils/ChangeLog6
-rw-r--r--winsup/utils/cygcheck.cc4
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 5e2e460..c772fd5 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,7 +1,11 @@
2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
+
+ * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
+
+2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
Christopher Faylor <cgf@timesys.com>
- * cygcheck.cc (pretty_id): Allocate space for trailing '\0' on uid and
+ * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
guid.
2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index c5df4c3..24f881e 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -814,8 +814,8 @@ pretty_id (const char *s, char *cygwin, size_t cyglen)
}
char **ng = groups - 1;
- size_t len_uid = strlen ("UID: ") + strlen (uid);
- size_t len_gid = strlen ("GID: ") + strlen (gid);
+ size_t len_uid = strlen ("UID: )") + strlen (uid);
+ size_t len_gid = strlen ("GID: )") + strlen (gid);
*++ng = groups[0] = (char *) alloca (len_uid + 1);
*++ng = groups[1] = (char *) alloca (len_gid + 1);
sprintf (groups[0], "UID: %s)", uid);