summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2010-12-09 16:02:43 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2010-12-09 16:02:43 +0000
commitd2332a1a7a117b15a172fb844223fd1811a53c1d (patch)
treec066e8c664725072e3b3d45b2e50efa40711169a /usr.bin
parentc5eca82f5d141c50bc6a4c97358a38c109a16741 (diff)
usage should fit on a 80-column display
ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/su/su.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index dac932f5603..fb3e7e42539 100644
--- a/usr.bin/su/su.c
+++ b/usr.bin/su/su.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: su.c,v 1.60 2010/12/09 15:50:55 sobrado Exp $ */
+/* $OpenBSD: su.c,v 1.61 2010/12/09 16:02:42 sobrado Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -431,7 +431,9 @@ usage(void)
extern char *__progname;
fprintf(stderr, "usage: %s [-fKLlm] [-a auth-type] [-c login-class] "
- "[-s login-shell] [login [shell arguments]]\n", __progname);
+ "[-s login-shell]\n"
+ "%-*s[login [shell arguments]]\n", __progname,
+ (int)strlen(__progname) +8, "");
exit(1);
}