Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 4051)
+++ trunk/MagicSoft/Mars/Changelog	(revision 4052)
@@ -19,4 +19,12 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2004/05/11: Thomas Bretz
+
+   * mraw/MRawEvtHeader.cc:
+     - added a check whether the file has finished or not after
+     reading the first bytes.
+
+
+
  2004/05/10: Marcos Lopez
 
@@ -29,4 +37,5 @@
        the excution of the Eventloop and not before it (since that object is 
        created when calling the PreProcess).
+
 
 
Index: trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc	(revision 4051)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc	(revision 4052)
@@ -320,4 +320,6 @@
 
     fin.read((char*)&fDAQEvtNumber, 4);  // Total=4
+    if (!fin)
+        return kFALSE;
 
     UInt_t abstime[2];
