src/hg/hgGene/wikiTrack.c 1.24

1.24 2009/09/23 18:42:17 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/hgGene/wikiTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGene/wikiTrack.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -b -B -U 4 -r1.23 -r1.24
--- src/hg/hgGene/wikiTrack.c	25 Nov 2008 22:40:50 -0000	1.23
+++ src/hg/hgGene/wikiTrack.c	23 Sep 2009 18:42:17 -0000	1.24
@@ -385,9 +385,9 @@
  *	now calling this just to see if user is logged into the wiki
  */
 if(!wikiTrackEnabled(database, &userName))
     {
-    cartWebStart(cart, database, title);
+    cartWebStart(cart, database, "%s", title);
     errAbort("hgGene.doWikiTrack: called when wiki track is not enabled ?");
     }
 				/* FALSE == do not print message */
 if (isNotEmpty(userName) && emailVerified(FALSE))
@@ -410,9 +410,9 @@
     puts("</HEAD>\n");
     return;
     }
 
-cartWebStart(cart, database, title);
+cartWebStart(cart, database, "%s", title);
 
 /* safety check, both of these lists should be non-zero */
 int locusLocationCount = slCount(clusterList);
 int rawListCount = slCount(allIsoforms);