Changeset 2333 for tags


Ignore:
Timestamp:
10/06/11 13:18:12 (13 years ago)
Author:
Malte Marquarding
Message:

Need to read in six characters to compare to SIMPLE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/asap-4.0.0/src/FillerWrapper.h

    r2289 r2333  
    9292      ret = pks ;
    9393    else if ( file.isReadable() ) {
     94      // if we want to compare to 6 characters we should only read in 6
    9495      FILE *f = fopen( filename.c_str(), "r") ;
    95       char buf[8] ;
    96       fread( buf, 6, 1, f ) ;
     96      char buf[7] ;
     97      size_t tmp = fread( buf, 6, 1, f ) ;
     98      (void *)tmp;
    9799      fclose( f ) ;
    98       buf[7]='\0' ;
     100      buf[6]='\0' ;
    99101      // NRO data has two types:
    100102      //  1) specific binary data for OTF observation
Note: See TracChangeset for help on using the changeset viewer.