summaryrefslogtreecommitdiffstats
path: root/text-utils/more.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/more.c')
-rw-r--r--text-utils/more.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/text-utils/more.c b/text-utils/more.c
index 8888a083b..3bbeede5d 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -1058,8 +1058,7 @@ void erasep(register int col)
if (!dumb && eraseln)
my_putstring(eraseln);
else
- for (col = promptlen - col; col > 0; col--)
- putchar(' ');
+ printf("%*s", promptlen - col, "");
}
promptlen = 0;
}