src/hg/lib/hgFind.c 1.222

1.222 2009/09/23 18:42:20 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/hgFind.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgFind.c,v
retrieving revision 1.221
retrieving revision 1.222
diff -b -B -U 4 -r1.221 -r1.222
--- src/hg/lib/hgFind.c	10 Jul 2009 01:40:37 -0000	1.221
+++ src/hg/lib/hgFind.c	23 Sep 2009 18:42:20 -0000	1.222
@@ -2914,11 +2914,11 @@
         sameString("chr23", *term) || startsWith("chr23:", *term))
         {
         *term = hDefaultPos(hgp->database);
         if (endsWith(hgAppName, "hgTables"))
-            hUserAbort(msg);
+            hUserAbort("%s", msg);
         else
-            warn(msg);
+            warn("%s", msg);
         return TRUE;
         }
     }
 return FALSE;