Cosmetics.

This commit is contained in:
Bartosz Taudul 2023-01-03 13:56:56 +01:00 committed by GitHub
parent b597ab5a0a
commit d76e3a364a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ UserData::UserData( const char* program, uint64_t time )
fseek( f, 0, SEEK_END );
const auto sz = ftell( f );
fseek( f, 0, SEEK_SET );
auto buf = std::unique_ptr<char[]>(new char[sz]);
auto buf = std::unique_ptr<char[]>( new char[sz] );
fread( buf.get(), 1, sz, f );
fclose( f );
m_description.assign( buf.get(), buf.get() + sz );