Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.bugs.4bsd Subject: Re: Bug in users command Message-ID: <18958@rpp386.cactus.org> Date: 18 Jan 91 16:18:10 GMT References: <18947@rpp386.cactus.org> <1126:Jan1811:17:4091@kramden.acf.nyu.edu> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 16 X-Clever-Slogan: Recycle or Die. In article <1126:Jan1811:17:4091@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >Two other obvious bugs: first, the number of users is limited to 200; >second, scmp() appears to take the wrong argument types. Here is a >public-domain version that fixes these problems. This is derived from >the public-domain u.c published on comp.sources.unix as part of the pty >package; neither program was derived from Berkeley source. Look at the array that is being sorted. It will be pretty obvious once you look at the type of that object that scmp is being called properly. And obviously, since the sort does work, it is being called with the correct values. -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org "While you are here, your wives and girlfriends are dating handsome American movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."