We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4b552 commit fc52d90Copy full SHA for fc52d90
ario/ario.hpp
@@ -436,7 +436,7 @@ class ario
436
auto arch_magic_size = arch_magic.size();
437
std::string magic( arch_magic_size, ' ' );
438
pstream->read( &magic[0], arch_magic_size );
439
- if ( magic != arch_magic ) {
+ if ( magic.substr( 0, 7 ) != arch_magic.substr( 0, 7 ) ) {
440
return { std::string( "Invalid archive format. Expected magic: " ) +
441
arch_magic + ", but got " + magic };
442
}
0 commit comments