summaryrefslogtreecommitdiff
path: root/src/pr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pr.c')
-rw-r--r--src/pr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pr.c b/src/pr.c
index 0c02430e3..3b6e8015e 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -2402,8 +2402,10 @@ print_header (void)
lhs_spaces = available_width >> 1;
rhs_spaces = available_width - lhs_spaces;
- printf ("\n\n%s%*s%s%*s%s\n\n\n",
- date_text, lhs_spaces, " ", file_text, rhs_spaces, " ", page_text);
+ printf ("\n\n%*.*s%s%*.*s%s%*.*s%s\n\n\n",
+ chars_per_margin, chars_per_margin, " ",
+ date_text, lhs_spaces, lhs_spaces, " ",
+ file_text, rhs_spaces, rhs_spaces, " ", page_text);
print_a_header = false;
output_position = 0;