]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 18 Oct 2004 10:25:38 +0000 (10:25 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 18 Oct 2004 10:25:38 +0000 (10:25 +0000)
printf-format.

winsup/utils/ChangeLog
winsup/utils/cygcheck.cc

index 005594220990a6967b8208e5e4e012bf61a128c5..3cf8c803ba11c91c4635f1712328c41e8855ae63 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-18  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>  
+
+       * cygcheck.cc (pretty_id): Don't let i become negative. Fix
+       printf-format.
+
 2004-10-17  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
 
        * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
index 24f881e852676adcd0713f18cea3122c5c5e8aff..7861871d0e109c05afd03e9fe2409d1d8090f8f4 100644 (file)
@@ -836,11 +836,11 @@ pretty_id (const char *s, char *cygwin, size_t cyglen)
 
   printf ("\nOutput from %s (%s)\n", id, s);
   int n = 80 / (int) ++sz;
-  int i = n ? n - 2 : 0;
+  int i = n > 2 ? n - 2 : 0;
   sz = -sz;
   for (char **g = groups; g <= ng; g++)
     if ((g != ng) && (++i < n))
-      printf ("%*s ", sz, *g);
+      printf ("%*s", sz, *g);
     else
       {
        puts (*g);
This page took 0.035007 seconds and 5 git commands to generate.