aboutsummaryrefslogtreecommitdiff
path: root/coreutils/nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/nl.c')
-rw-r--r--coreutils/nl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/nl.c b/coreutils/nl.c
index 800b73c26..d06673881 100644
--- a/coreutils/nl.c
+++ b/coreutils/nl.c
@@ -68,7 +68,7 @@ int nl_main(int argc UNUSED_PARAM, char **argv)
&ns.width, &ns.sep, &ns.start, &ns.inc, &opt_b);
ns.all = (opt_b[0] == 'a');
ns.nonempty = (opt_b[0] == 't');
- ns.empty_str = xasprintf("%*s\n", ns.width + (int)strlen(ns.sep), "");
+ ns.empty_str = xasprintf("%*s", ns.width + (int)strlen(ns.sep), "");
argv += optind;
if (!*argv)