]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
authorChristopher Faylor <me@cgf.cx>
Mon, 18 Oct 2004 01:44:55 +0000 (01:44 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 18 Oct 2004 01:44:55 +0000 (01:44 +0000)
winsup/utils/ChangeLog
winsup/utils/cygcheck.cc

index 5e2e460461867a0234ec21f744a0530551b4d641..c772fd59e530c0ae622e78f77768521af3d2dcb8 100644 (file)
@@ -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>
index c5df4c3794e47e924c2ceddfc108e14f44fb0d71..24f881e852676adcd0713f18cea3122c5c5e8aff 100644 (file)
@@ -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);
This page took 0.039846 seconds and 5 git commands to generate.