/[PAMELA software]/yoda/techmodel/forroutines/tracker/readraw/readbad.c
ViewVC logotype

Diff of /yoda/techmodel/forroutines/tracker/readraw/readbad.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6.0 by kusanagi, Tue Feb 7 17:11:11 2006 UTC revision 6.1 by kusanagi, Tue Jun 27 10:25:42 2006 UTC
# Line 55  void readbad_(unsigned short *bad_buf, i Line 55  void readbad_(unsigned short *bad_buf, i
55    
56      int nbytes2=2;      int nbytes2=2;
57      char *buff=buffer;      char *buff=buffer;
58        
59      for(i=0; i<64; i++){      if( *curpos+64+2>*len ) {
       getbytes_(&nbytes2,buff,curpos,&bad_buf_temp[i]);  
   
       if( *curpos-1>*len ) {  
60          printf("readbad: Unexpected end of file \n");          printf("readbad: Unexpected end of file \n");
61          *error=1;          *error=1;
62          return ;          return ;
       }  
63      }      }
64    
65        for(i=0; i<64; i++)
66            getbytes_(&nbytes2,buff,curpos,&bad_buf_temp[i]);
67        
68  /*****************************************************************/  /*****************************************************************/
69    
70    
# Line 165  void readbad_(unsigned short *bad_buf, i Line 165  void readbad_(unsigned short *bad_buf, i
165  /* /\*     } *\/ */  /* /\*     } *\/ */
166    
167        
168        getbytes_(&nbytes2,buff,curpos,&skip);      getbytes_(&nbytes2,buff,curpos,&skip);
169            
170      if( *curpos-1>*len ) {     /*  if( *curpos-1>*len ) { */
171        printf("readbad: Unexpected end of file \n");  /*       printf("readbad: Unexpected end of file \n"); */
172        *error=1;  /*       *error=1; */
173        return ;  /*       return ; */
174      }  /*     } */
175  /*****************************************************************/  /*****************************************************************/
176    
177    

Legend:
Removed from v.6.0  
changed lines
  Added in v.6.1

  ViewVC Help
Powered by ViewVC 1.1.23