[comp.unix.ultrix] Small bug in "users"

zemon@felix.UUCP (01/16/88)

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