diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-10 14:22:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-10 14:22:46 +0000 |
commit | 6f59cd3b324092ce543e20944331cc9e4f3fcf63 (patch) | |
tree | 26de9dcab7f80682611c3a7592b2a2587a47539c | |
parent | 51ce2f8e5fbd4b9aa05bf0e475c238bf51b2c2d9 (diff) | |
download | coreutils-6f59cd3b324092ce543e20944331cc9e4f3fcf63.tar.xz |
(proc_text): Use `puts' to output a string of spaces, not printf.
-rw-r--r-- | src/nl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |