aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rc/_usage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rc/_usage.c b/src/rc/_usage.c
index 11808532..8aa1806c 100644
--- a/src/rc/_usage.c
+++ b/src/rc/_usage.c
@@ -75,8 +75,9 @@ usage(int exit_status)
lo = p = xstrdup(longopts_help[i]);
while ((token = strsep(&p, "\n"))) {
- while (++len < 37)
- printf(" ");
+ len = 36 - len;
+ if (len > 0)
+ printf("%*s", len, "");
puts(token);
len = 0;
}