ables@mcc-db.UUCP (King Ables) (05/15/85)
If you have some hosts on your ethernet which have long names, rwho will quit after the first user whose hostname:ttyname string is longer than 22 characters. After the table of all users is built, it is sorted. Then there is a "for" loop to determine the longest hostname (to make the output table look nice). The next "for" loop prints out each user entry. The first thing done in this loop is to define a character buffer "buf[22]" for the hostname and tty the user is on. If this isn't enough, the counter for the loop, "i", gets bashed (set to something very large) and the loop terminates. Just increase the size of the buffer (I used 50). -King ARPA: ables@mcc UUCP: {ihnp4,seismo,ctvax}!ut-sally!mcc-db!ables