mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Use number of tty columns that is passed in user_info instead of
getting it directly in the lbuf code.
This commit is contained in:
@@ -240,7 +240,7 @@ display_privs(snl, pw)
|
||||
/* Reset group vector so group matching works correctly. */
|
||||
reset_groups(pw);
|
||||
|
||||
lbuf_init(&lbuf, NULL, 4, 0);
|
||||
lbuf_init(&lbuf, NULL, 4, 0, sudo_user.cols);
|
||||
|
||||
/* Display defaults from all sources. */
|
||||
count = 0;
|
||||
|
Reference in New Issue
Block a user