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

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

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

revision 5.1 by kusanagi, Sat Feb 4 12:37:45 2006 UTC revision 6.1 by kusanagi, Tue Jun 27 10:25:42 2006 UTC
# Line 64  void hunpacker_(unsigned short *header, Line 64  void hunpacker_(unsigned short *header,
64      nhead = 13;  /* packed */      nhead = 13;  /* packed */
65            
66      *startcrc=*curpos;      *startcrc=*curpos;
67        
68      for (i=0;i<13;i++){      if( *curpos+13>*len ) {
         getbytes_(&nbytes2,buff,curpos,&buffer_temp[i]);  
       
       if( *curpos-1>*len ) {  
69          printf("hunpacker: Unexpected end of file\n");          printf("hunpacker: Unexpected end of file\n");
70          *error=1;          *error=1;
71          return ;          return ;
       }  
72      }      }
73        
74        for (i=0;i<13;i++)
75            getbytes_(&nbytes2,buff,curpos,&buffer_temp[i]);
76            
77  /****************************************************************/  /****************************************************************/
78    
79    

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

  ViewVC Help
Powered by ViewVC 1.1.23