src/hg/hgTables/identifiers.c 1.29
1.29 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/hgTables/identifiers.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/identifiers.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -b -B -U 4 -r1.28 -r1.29
--- src/hg/hgTables/identifiers.c 8 Jul 2009 23:18:53 -0000 1.28
+++ src/hg/hgTables/identifiers.c 23 Sep 2009 18:42:17 -0000 1.29
@@ -66,9 +66,9 @@
/* Return a list of several example values of table.field. */
{
char fullTable[HDB_MAX_TABLE_STRING];
if (! hFindSplitTable(database, NULL, table, fullTable, NULL))
- safef(fullTable, sizeof(fullTable), table);
+ safecpy(fullTable, sizeof(fullTable), table);
return sqlRandomSampleConn(conn, fullTable, field, count);
}
static void explainIdentifiers(struct sqlConnection *conn, char *idField)