2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Fix line wrapping in usage() and use the actual tty width instead of

assuming 80.
This commit is contained in:
Todd C. Miller
2007-08-18 12:22:16 +00:00
parent ccd780f993
commit d28030c9fd
3 changed files with 21 additions and 11 deletions

View File

@@ -64,7 +64,6 @@ extern struct defaults *defaults;
static void print_member __P((char *, int, int, int));
static void display_defaults __P((struct passwd *));
static void display_bound_defaults __P((int));
static int get_ttycols __P((void));
static void print_wrap __P((int, int, int, ...));
#define print_def(a) print_wrap(4, 0, 1, a);
@@ -491,7 +490,7 @@ print_member(name, type, negated, alias_type)
# define ts_cols ws_col
#endif
static int
int
get_ttycols()
{
char *p;