🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #242

Safe coding practices (was Re: Bug in users command)

#242
From: Norman Diamond
Date: Thu, 24 Jan 1991 06:07
19 lines
1599 bytes
In article <22855@well.sf.ca.us> Jef Poskanzer <jef@well.sf.ca.us> writes:

>    #define MAXNAMES 1000
>    static char users[MAXNAMES][UT_NAMESIZE+1];
>    (void) strncpy( users[nusers], u.ut_name, UT_NAMESIZE );
>    users[nusers][UT_NAMESIZE] = '\0';
>And yes, this will fail if more than 1000 users are logged in at
>the same time.  Imagine how concerned I am.

Uh, maybe equally concerned as people who knew that their operating system
would never last 10 years, or 28 years, or whatever?
Equally concerned as people who knew that the spacecraft would not last a
year, or when it did, they knew it wouldn't last another 4 years?
You should know to set a better example than this.

Followups (if any are necessary) are directed to comp.lang.c.
--
Norman Diamond       diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Technical Details
Message-ID: <1991Jan24.060707.22566@tkou02.enet.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!pacbell.com!ucsd!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!jit345!diamond
References: <12360:Jan2320:15:5291@kramden.acf.nyu.edu> <22855@well.sf.ca.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!pacbell.com!ucsd!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!shlump.nac.dec.com!tkou02.enet.dec.com!jit345!diamond
From: diamond@jit345.swstokyo.dec.com (Norman Diamond)
Newsgroups: comp.bugs.4bsd,comp.std.c,comp.lang.c
Subject: Safe coding practices (was Re: Bug in users command)
Message-ID: <1991Jan24.060707.22566@tkou02.enet.dec.com>
Date: 24 Jan 91 06:07:07 GMT
References: <12360:Jan2320:15:5291@kramden.acf.nyu.edu> <22855@well.sf.ca.us>
Sender: news@tkou02.enet.dec.com (USENET News System)
Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond)
Followup-To: comp.lang.c
Organization: Digital Equipment Corporation Japan , Tokyo
Lines: 19