Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!jade!ig!uwmcsd1!bbn!rochester!ritcv!cci632!ccicpg!felix!zemon From: zemon@felix.UUCP Newsgroups: comp.unix.ultrix Subject: Small bug in "users" Message-ID: <18700@felix.UUCP> Date: 15 Jan 88 21:07:05 GMT Sender: zemon@felix.UUCP Reply-To: zemon@felix.UUCP Lines: 18 Approved: zemon@felix.UUCP Reply-Path: I found a small bug in "users" that exists in Ultrix v2.0 and v2.2. The program dumps core if you have more than 128 people logged in. The fix is trivial. 36c36 < char *names[128]; --- > char *names[256]; Of course, you could be really ambitious and put in a "real" fix involving dynamically allocated memory and so on, but.... Don't forget to relink /usr/ucb/users to /usr/ucb/u when you reinstall. -- Art Zemon By Computer: ...!hplabs!felix!zemon By Air: Archer N33565 By Golly: moderator of comp.unix.ultrix