This commit is contained in:
Glenn Maynard
2002-09-13 18:32:10 +00:00
parent c2f2f99650
commit 7d00e04e61
+5 -1
View File
@@ -1497,7 +1497,11 @@ void crash() {
/* RageLog feeds us logs; keep track of recent logs in a circular
* buffer. This lets us include recent logs in the crash report.
* We don't want to include RageLog, since we don't want to pull
* in MFC. */
* in MFC.
*
* Since this is a static, preallocated region, even if it gets
* trampled we'll just print garbage, not crash due to an invalid
* pointer. */
static const int BACKLOG_LINES = 10;
static char backlog[BACKLOG_LINES][1024];
static int backlog_start=0, backlog_cnt=0;