- Timestamp:
- 09/06/16 12:59:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/NROFITSDataset.cc
r3066 r3103 849 849 string str24( 24, ' ' ) ; 850 850 851 strcpy( record_->LSFIL, str4.c_str() ) ; 851 for (auto i = 0u; i < 4u; ++i) { 852 record_->LSFIL[i] = ' '; 853 } 852 854 status = readTable( record_->LSFIL, "LSFIL", 4, i ) ; 853 855 if ( status ) { … … 878 880 //cout << "LAVST(" << i << ") = " << record_->LAVST << endl ; 879 881 // 880 strcpy( record_->SCANTP, str8.c_str() ) ; 882 for (auto i = 0u; i < 8u; ++i) { 883 record_->SCANTP[i] = ' '; 884 } 881 885 status = readTable( record_->SCANTP, "SCNTP", strlen(record_->SCANTP), i ) ; 882 886 if ( status ) { … … 993 997 //cout << "YY(" << i << ") = " << record_->YY << endl ; 994 998 // 995 strcpy( record_->ARRYT, str4.c_str() ) ; 996 status = readTable( record_->ARRYT, "ARRYT", strlen(record_->ARRYT), i ) ; 997 for (int j = strlen(record_->ARRYT)-1 ; j >= 0 ; j--) { 999 for (auto i = 0u; i < 4u; ++i) { 1000 record_->ARRYT[i] = ' '; 1001 } 1002 status = readTable( record_->ARRYT, "ARRYT", 4, i ) ; 1003 for (int j = 3 ; j >= 0 ; j--) { 998 1004 if (record_->ARRYT[j] == ' ') record_->ARRYT[j] = '\0'; 999 1005 else break;
Note:
See TracChangeset
for help on using the changeset viewer.