aboutsummaryrefslogtreecommitdiff
path: root/center.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-10 14:34:36 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-10 14:34:36 +0100
commit21ce4aad217872570c0f0a5a0a4e28f4bcdcf387 (patch)
treebb37250c32211deae0df73e3c707d3c22f30cbe7 /center.c
parentef5fcf36e9a852669c6db43352cac5d841ae210d (diff)
Centering was off by 1, lolv1.2.0
Diffstat (limited to 'center.c')
-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) {