Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Bug in iocLogServer
From: Jennings Guy <jennings@anl.gov>
To: Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 31 Oct 2012 13:25:08 -0500
I ran across a small bug in iocLogServer.c while trying to build it for an embedded ARM system.

There is a section in the routine seekLatestLine where EOF is compared to a 'char' variable - it
should be an int.

--- /home/jennings/development/epics/base-3.14.12.2/src/util/iocLogServer.c     2011-12-12 14:14:45.000000000 -0600
+++ /home/jennings/development/epics/iocLogServerStandalone/iocLogServer.c      2012-10-31 13:22:16.311818954 -0500
@@ -289,7 +289,7 @@
             }
         }
         else {
-            char c = fgetc (pserver->poutfile);
+            int c = fgetc (pserver->poutfile);
  
             /*
              * bypass the line if it does not match the expected format


Guy Jennings

Replies:
Re: Bug in iocLogServer Andrew Johnson

Navigate by Date:
Prev: Re: extensionsTop 20120904 disable XRT/graph by default patch Janet Anderson
Next: Re: Bug in iocLogServer Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: How to debug an IOC running on MSWindows using windbg Ahed Aladwan
Next: Re: Bug in iocLogServer Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·