Index: src/lib/htmshell.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/htmshell.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -b -B -U 4 -r1.66 -r1.67
--- src/lib/htmshell.c	18 Feb 2010 21:11:07 -0000	1.66
+++ src/lib/htmshell.c	19 Feb 2010 07:17:10 -0000	1.67
@@ -225,12 +225,14 @@
 fprintf(f, "document.write(\"<center>"
             "<div id='warnBox' style='display:none; background-color:Beige; "
               "border: 3px ridge DarkRed; width:640px; padding:10px; margin:10px; "
               "text-align:left;'>"
-            "<CENTER><B id='warnHead' style='color:DarkRed;'></B></CENTER><UL id='warnList'></UL>"
-            "<CENTER><button id='warnOK' onclick='hideWarnBox();return false;'>&nbsp;OK&nbsp;</button></CENTER>"
+            "<CENTER><B id='warnHead' style='color:DarkRed;'></B></CENTER>"
+	    "<UL id='warnList'></UL>"
+            "<CENTER><button id='warnOK' onclick='hideWarnBox();return false;'></button></CENTER>"
             "</div></center>\");\n");
 fprintf(f,"function showWarnBox() {"
+            "document.getElementById('warnOK').innerHTML='&nbsp;OK&nbsp;';"
             "var warnBox=document.getElementById('warnBox');"
             "warnBox.style.display=''; warnBox.style.width='65%%';"
             "document.getElementById('warnHead').innerHTML='Error(s):';"
           "}\n");
@@ -250,9 +252,9 @@
 va_list argscp;
 va_copy(argscp, args);
 #ifdef WARNBOX_IN_USE
 htmlWarnBoxSetup(stdout); // sets up the warnBox if it hasn't already been done.
-char warning[512];
+char warning[1024];
 vsnprintf(warning,sizeof(warning),format, args);
 // NOTE: While some internal HTML should work, a single quote (') will will screw it all up!
 if( strSwapStrs(warning, sizeof(warning),"'","&#39;") == -1) // Sheild single quotes
     strSwapChar(warning,'\'','`');  // ran out of memory, replacing them with (`)

