[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Panic strings
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Panic strings
- From: Constantine Sapuntzakis <csapuntz_(_at_)_tma-1_(_dot_)_lcs_(_dot_)_mit_(_dot_)_edu>
- Date: 12 Jan 1998 17:41:57 -0500
The panic string (panicstr) is currently being set to the format string
passed to panic. This is done (I assume) so that we don't have to call
malloc in panic to allocate a buffer for the final panic string.
I believe a reasonable alternative would be to have fixed sized
panic buffer and to snprintf into it. 256 characters seems like an
exceedingly reasonable size.
Any opinions?
-Costa
Visit your host, monkey.org