(write_group): Fix generation of long line in a different way.
authordrepper <drepper>
Wed, 9 Jun 1999 11:50:27 +0000 (11:50 +0000)
committerdrepper <drepper>
Wed, 9 Jun 1999 11:50:27 +0000 (11:50 +0000)
grp/tst_fgetgrent.c

index 2790f2d..79331f7 100644 (file)
@@ -32,9 +32,12 @@ write_users (FILE *f, int large_pos, int pos)
 
   if (pos == large_pos)
     {
+      if (large_pos == 3)
+       fprintf (f, ":three");
+
       /* we need more than 2048 bytes for proper testing.  */
       for (i = 0; i < 500; i++)
-       fprintf (f, "%suser%03d", i == 0 ? ":" : ",", i);
+       fprintf (f, ",user%03d", i);
     }
   fprintf (f, "\n");