Changeset 25145
- Timestamp:
- 06/24/20 19:14:18 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/IoModel.cpp
r25079 r25145 596 596 } 597 597 if(record_name_size<3 || record_name_size>80){ 598 _error_("error while looking in binary file. Found a string of size "<<record_name_size); 598 /*we are going to error out, still try and get informatoin for the user:*/ 599 record_name=xNew<char>(record_name_size+1); 600 record_name[record_name_size]='\0'; 601 602 /*Read record_name: */ 603 fread(record_name,record_name_size*sizeof(char),1,fid); 604 605 _error_("error while looking in binary file. String " << record_name << " a string of size "<<record_name_size); 599 606 } 600 607 … … 607 614 _error_("Could not read record name"); 608 615 } 616 609 617 if(strncmp(record_name,mddot,3)!=0){ 610 618 _error_("error while reading binary file: record does not start with \"md.\": "<<record_name);
Note:
See TracChangeset
for help on using the changeset viewer.