From 6206e82766ddf6b23d9d79b5a66c01e7ce395075 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 1 Jul 1996 22:33:06 +0000 Subject: (_w_specs): Don't use utmp buffer sizes for field widths, as they can be very large. --- utils/w.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/w.c b/utils/w.c index aa0c22ce..f39564a0 100644 --- a/utils/w.c +++ b/utils/w.c @@ -216,11 +216,11 @@ extern error_t ps_emit_user_name (); extern int ps_cmp_times (), ps_cmp_strings (); const struct ps_fmt_spec _w_specs[] = { - {"User", 0, UT_NAMESIZE,-1,0,&w_uname_getter,ps_emit_string, ps_cmp_strings}, - {"Name", 0, 20, -1,0,&w_user_getter, ps_emit_user_name,ps_cmp_strings}, + {"User", 0, 8, -1,0, &w_uname_getter,ps_emit_string, ps_cmp_strings}, + {"Name", 0, 20, -1,0, &w_user_getter, ps_emit_user_name,ps_cmp_strings}, {"Login","Login@", -7, -1,0,&w_login_getter,ps_emit_past_time,ps_cmp_times}, - {"From", 0, UT_HOSTSIZE,-1,0,&w_host_getter, ps_emit_string, ps_cmp_strings}, - {"Idle", 0, -5, -1,0,&w_idle_getter, ps_emit_minutes,ps_cmp_times}, + {"From", 0, 16, -1,0, &w_host_getter, ps_emit_string, ps_cmp_strings}, + {"Idle", 0, -5, -1,0, &w_idle_getter, ps_emit_minutes,ps_cmp_times}, {"What=args"}, {0} }; -- cgit v1.2.3