/[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.3 by pam-fi, Tue Oct 24 11:28:38 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+(2*13)>*len ) {
69          getbytes_(&nbytes2,buff,curpos,&buffer_temp[i]);          //      printf("hunpacker: Unexpected end of file\n");
       
       if( *curpos-1>*len ) {  
         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.3

  ViewVC Help
Powered by ViewVC 1.1.23