Subject: Re: CVS commit: src/sys
To: Klaus Klein <kleink@mibh.de>
From: None <itojun@iijlab.net>
List: tech-kern
Date: 04/25/2004 03:22:34
>While I believe Simon's suggestion of panic() in the DIAGNOSTIC
>case is a good idea (in the spirit of DIAGNOSTIC), why not take
>this one step further and truncate in case of insufficient space
>if !DIAGNOSTIC?  It's not as if these functions had a significant
>performance impact (other than their ever-growing code size) so
>I'd rather pay the expense of such a check than having memory
>corrupted.

	if 2nd arg to snprintf() is smaller than required space, snprintf()
	would leave truncated string as a result.

itojun