From owner-cvs-usrbin Mon Dec 26 16:53:25 1994 Return-Path: cvs-usrbin-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id QAA02707 for cvs-usrbin-outgoing; Mon, 26 Dec 1994 16:53:25 -0800 Received: (from ats@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id QAA02693; Mon, 26 Dec 1994 16:53:17 -0800 Date: Mon, 26 Dec 1994 16:53:17 -0800 From: Andreas Schulz Message-Id: <199412270053.QAA02693@freefall.cdrom.com> To: CVS-commiters, cvs-usrbin Subject: cvs commit: src/usr.bin/rwho rwho.c Sender: cvs-usrbin-owner@FreeBSD.org Precedence: bulk ats 94/12/26 16:53:16 Modified: usr.bin/rwho rwho.c Log: My prevoius commit missed some things. The out_line didn't need to be padded to 8 chars. Simply make sure that never more than 8 chars are printed ( %-.8s ). The former commit otherwise hosed the width calculation and landed on different positions for the time output. Also the strlen(xx_out_line) hoses the wide calculation, so that it sometimes make it much larger than necessary. Simply use always 8 chars for the out_line calculation now. Looks good this way.