converted_alloc = content_length + 8192;
converted_msg = malloc(converted_alloc);
if (converted_msg == NULL) {
- abort(); /* FIXME */
+ wprintf("Error %d: %s<br />%s:%s", errno, strerror(errno), __FILE__, __LINE__);
+ goto BAIL;
}
+
strcpy(converted_msg, "");
ptr = msg;
msgend = strchr(msg, 0);
/** Output our big pile of markup */
client_write(converted_msg, output_length);
- /** A little trailing vertical whitespace... */
+BAIL: /** A little trailing vertical whitespace... */
wprintf("<br /><br />\n");
/** Now give back the memory */
// Place a gradient loadscreen on an element, e.g to use before Ajax.updater
function CtdlLoadScreen(elementid) {
var elem = document.getElementById(elementid);
-elem.innerHTML = "<b>Loading....</b> <img src=\"/static/gradientanim.gif\"/>";
+elem.innerHTML = "<div align=center><br><b>Loading....</b><br /><img src=\"/static/gradientanim.gif\"/></div>";
}
// Show info for a user, basically replaces showuser()
// matt@comalies is to blame for this poorly coded masterpiece.