]> sjero.net Git - wget/blobdiff - src/main.c
Improve printing formatted build information.
[wget] / src / main.c
index b0fceae062b80dbe486e1500500506b29d8f5b15..9bae2d236eeb3441f51d9972cf4b3c33735a409b 100644 (file)
@@ -733,13 +733,7 @@ format_and_print_line (const char *prefix, const char *line,
          token on the next line. */
       if (remaining_chars <= strlen (token)) 
         {
-          int j;
-          printf ("\n");
-          j = 0;
-          for (j = 0; j < leading_spaces; j++) 
-            {
-              printf (" ");
-            }
+          printf ("\n%*c", leading_spaces, ' ');
           remaining_chars = line_length - leading_spaces;
         }
       printf ("%s ", token);