src/cdnaAli/findCdna/findCdna.c 1.5
1.5 2009/09/23 18:42:15 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/cdnaAli/findCdna/findCdna.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/cdnaAli/findCdna/findCdna.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/cdnaAli/findCdna/findCdna.c 20 Jun 2006 19:20:07 -0000 1.4
+++ src/cdnaAli/findCdna/findCdna.c 23 Sep 2009 18:42:15 -0000 1.5
@@ -67,9 +67,9 @@
if (!snofFindOffset(snof, geneName, &offset))
return NULL;
fseek(f, offset, SEEK_SET);
-fgets(lineBuf, sizeof(lineBuf), f);
+mustGetLine(f, lineBuf, sizeof(lineBuf));
wordCount = chopString(lineBuf, whiteSpaceChopper, words, ArraySize(words));
assert(strcmp(words[0], geneName) == 0);
for (i=1; i<wordCount; ++i)
{