src/hg/lib/web.c 1.171

1.171 2009/09/23 18:42:21 angie
Fixed compiler warnings from gcc 4.3.3, mostly about system calls whose return values weren't checked and non-literal format strings with no args.
Index: src/hg/lib/web.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/web.c,v
retrieving revision 1.170
retrieving revision 1.171
diff -b -B -U 4 -r1.170 -r1.171
--- src/hg/lib/web.c	27 Aug 2009 13:50:27 -0000	1.170
+++ src/hg/lib/web.c	23 Sep 2009 18:42:21 -0000	1.171
@@ -473,9 +473,9 @@
 /* output a CGI and HTML header with the given title in printf format */
 {
 char textOutBuf[512];
 
-safef(textOutBuf, sizeof(textOutBuf), format);
+safecpy(textOutBuf, sizeof(textOutBuf), format);
 webStartWrapperDetailedInternal(theCart, db, headerText, textOutBuf,
 	withHttpHeader, withLogo, skipSectionHeader, withHtmlHeader);
 }