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 2c4ac0f..57b5473 100644
--- a/center.c
+++ b/center.c
@@ -183,7 +183,7 @@ center_by_longest(FILE *fp)
line = STAILQ_FIRST(&list_head);
while (line != NULL) {
int len = longest;
- for (int i = ((width - len) / 2); i >= 0; i--)
+ for (int i = (width - len) / 2; i >= 0; i--)
putchar(' ');
fputs(line->buffer, stdout);