-/* $Id: errorpage.cc,v 1.13 1996/04/04 18:41:23 wessels Exp $ */
+/* $Id: errorpage.cc,v 1.14 1996/04/05 23:21:11 wessels Exp $ */
/* DEBUG: Section 4 cached_error: Error printing routines */
};
/* GLOBAL */
-char tmp_error_buf[BUFSIZ];
+char *tmp_error_buf;
/* LOCAL */
-static char tbuf[BUFSIZ];
+static char *tbuf;
int log_errors = 1;
+void errorInitialize() {
+ tmp_error_buf = (char *) xmalloc(MAX_URL * 4);
+ tbuf = (char *) xmalloc(MAX_URL * 3);
+}
+
void cached_error_entry(entry, type, msg)
StoreEntry *entry;
{
int index;
- tmp_error_buf[0] = '\0';
+ *tmp_error_buf = '\0';
if (type == ERR_MIN || type > ERR_MAX)
fatal_dump("cached_error_url: type out of range.");
index = (int) (type - ERR_MIN);
{
int index;
- tmp_error_buf[0] = '\0';
+ *tmp_error_buf = '\0';
if (type == ERR_MIN || type > ERR_MAX)
fatal_dump("cached_error_url: type out of range.");
index = (int) (type - ERR_MIN);
-/* $Id: main.cc,v 1.19 1996/04/04 22:01:54 wessels Exp $ */
+/* $Id: main.cc,v 1.20 1996/04/05 23:21:12 wessels Exp $ */
/* DEBUG: Section 1 main: startup and main loop */
int n; /* # of GC'd objects */
time_t last_maintain = 0;
+ errorInitialize();
+
cached_starttime = getCurrentTime();
failure_notify = fatal_dump;