From: Jim Meyering Date: Sat, 10 Nov 2001 14:22:46 +0000 (+0000) Subject: (proc_text): Use `puts' to output a string of spaces, not printf. X-Git-Tag: TEXTUTILS-2_0_17~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f59cd3b324092ce543e20944331cc9e4f3fcf63;p=thirdparty%2Fcoreutils.git (proc_text): Use `puts' to output a string of spaces, not printf. --- diff --git a/src/nl.c b/src/nl.c index ad6abefb27..562af28b90 100644 --- a/src/nl.c +++ b/src/nl.c @@ -333,7 +333,7 @@ proc_text (void) blank_lines = 0; } else - printf (print_no_line_fmt); + puts (print_no_line_fmt); } else print_lineno (); @@ -342,15 +342,15 @@ proc_text (void) if (1 < line_buf.length) print_lineno (); else - printf (print_no_line_fmt); + puts (print_no_line_fmt); break; case 'n': - printf (print_no_line_fmt); + puts (print_no_line_fmt); break; case 'p': if (re_search (current_regex, line_buf.buffer, line_buf.length - 1, 0, line_buf.length - 1, (struct re_registers *) 0) < 0) - printf (print_no_line_fmt); + puts (print_no_line_fmt); else print_lineno (); break;