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:
3
parse.c
3
parse.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user