Skip to content

Commit

Permalink
Merge pull request #480 from nstrahl/fix_selafin_header
Browse files Browse the repository at this point in the history
Fix: Bad bytes in header record
  • Loading branch information
PeterPetrik authored Mar 18, 2024
2 parents 224410d + 077258f commit 0cc2799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdal/frmts/mdal_selafin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ void MDAL::DriverSelafin::save( const std::string &fileName, const std::string &
std::ofstream file = MDAL::openOutputFile( fileName.c_str(), std::ofstream::binary );

std::string header( "Selafin file created by MDAL library" );
std::string remainingStr( " ", 72 - header.size() );
std::string remainingStr( 72 - header.size(), ' ' );
header.append( remainingStr );
header.append( "SERAFIND" );
assert( header.size() == 80 );
Expand Down

0 comments on commit 0cc2799

Please sign in to comment.