src/hg/hgTracks/simpleTracks.c 1.106
1.106 2009/09/23 18:42:19 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/hgTracks/simpleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/simpleTracks.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -b -B -U 4 -r1.105 -r1.106
--- src/hg/hgTracks/simpleTracks.c 22 Sep 2009 21:49:43 -0000 1.105
+++ src/hg/hgTracks/simpleTracks.c 23 Sep 2009 18:42:19 -0000 1.106
@@ -6178,9 +6178,9 @@
/* map colors from PGM to browser colors */
for(ii=0; ii < 52; ii++)
{
int jj;
- fread(buf, 1, width, f);
+ mustRead(f, buf, width);
for(jj=0; jj < width + 2; jj++)
{
if (buf[jj] == 255) buf[jj] = 0;
@@ -10517,9 +10517,9 @@
p = mem = needMem(count * 2);
/* read in probability data from file */
-fread(mem, sizeof(unsigned short), count, f);
+mustRead(f, mem, sizeof(unsigned short) * count);
fclose(f);
/* translate 5 bits for A,C,and G into real numbers for all bases */
for(ii=0; ii < motif->columnCount; ii++, p++)