src/lib/htmshell.c 1.51
1.51 2009/06/03 18:25:35 tdreszer
Mark caught my sloppy code. vsprintf replaced with vsnprintf()
Index: src/lib/htmshell.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/htmshell.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -b -B -U 4 -r1.50 -r1.51
--- src/lib/htmshell.c 3 Jun 2009 07:07:51 -0000 1.50
+++ src/lib/htmshell.c 3 Jun 2009 18:25:35 -0000 1.51
@@ -207,9 +207,9 @@
#define WARN_USE_ALERT
#ifdef WARN_USE_ALERT
static boolean noWarningsYet = TRUE;
char warning[512];
-vsprintf(warning,format, args);
+vsnprintf(warning,sizeof(warning),format, args);
if(noWarningsYet)
{
// This will only be put into the document once (DO NOT depend on jQuery!) (IE is a royale pain with innerHTML: used textarea)
puts("<textarea id='allWarnings' style='display:none;'>Warning(s):</textarea>");