From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Tolpin Message-Id: <200403251330.i2PDUemX062614@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] errstr(2) In-Reply-To: <2d02a062f561ff0711a63707cb49cb26@plan9.bell-labs.com> Date: Thu, 25 Mar 2004 17:30:40 +0400 Topicbox-Message-UUID: 41c71660-eacd-11e9-9e20-41e7f4b1d025 > > My question was whether the code was right (in generrstr) > > or accidental. > > In other words are we stupid or just incompetent? I like the use of fixed-length buffer for error strings. > You buffer len should be more determined by how long > an error string you might consider useful. Unless it is truncated by the kernel limit. So as long as my buffer is not longer than ERRMAX, I'm on a safe ground.