Just formatting

This commit is contained in:
Serge Lamikhov-Center 2024-06-15 10:58:36 +03:00
parent bb572fb848
commit 41f4012d49
5 changed files with 29 additions and 29 deletions

View File

@ -284,8 +284,8 @@ template <class T> class section_impl : public section
( *translator )[( *convertor )( header.sh_offset )];
Elf_Xword size = get_size();
if ( nullptr == data && SHT_NULL != get_type() &&
SHT_NOBITS != get_type() &&
sh_offset <= get_stream_size() && size <= (get_stream_size() - sh_offset)) {
SHT_NOBITS != get_type() && sh_offset <= get_stream_size() &&
size <= ( get_stream_size() - sh_offset ) ) {
data.reset( new ( std::nothrow ) char[size_t( size ) + 1] );
if ( ( 0 != size ) && ( nullptr != data ) ) {

View File

@ -68,8 +68,8 @@ int main( int argc, char** argv )
std::ifstream proc_maps( std::string( "/proc/" ) + argv[1] + "/maps" );
if ( !proc_maps ) {
std::cout << "Can't open "
<< std::string( "/proc/" ) + argv[1] + "/maps"
<< " file" << std::endl;
<< std::string( "/proc/" ) + argv[1] + "/maps" << " file"
<< std::endl;
return 2;
}