aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--center.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/center.c b/center.c
index d02dcfc..f4f2f00 100644
--- a/center.c
+++ b/center.c
@@ -287,7 +287,7 @@ cnttabs(const char *s)
void
println(const char *s, size_t len)
{
- for (int i = (width - len) / 2; i >= 0; i--)
+ for (int i = (width - len) / 2 - 1; i >= 0; i--)
putchar(' ');
if (rflag) {