src/hg/makeDb/hgCountAlign/hgCountAlign.c 1.7
1.7 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/makeDb/hgCountAlign/hgCountAlign.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/makeDb/hgCountAlign/hgCountAlign.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/hg/makeDb/hgCountAlign/hgCountAlign.c 17 Apr 2006 14:16:08 -0000 1.6
+++ src/hg/makeDb/hgCountAlign/hgCountAlign.c 23 Sep 2009 18:42:21 -0000 1.7
@@ -132,9 +132,9 @@
const int maxChar = 4096;
char s[maxChar];
unsigned newStart;
assert( in );
- fgets( s, maxChar, in);
+ mustGetLine(in, s, maxChar);
if( feof(in) ) return 0; //signal EOF with new winStart == 0.
else if( s[strlen(s)-1] != '\n' ) //otherwise make sure we have the entire file line.
{
fprintf( stderr, "In nextWinStart: maxChar = %d is too small for input file lines\n", maxChar );