diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:12:41 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:12:41 +0000 |
commit | b1a0f85fe3a832e8b91ef367399cd76632d633f4 (patch) | |
tree | 3fcdbbc4f8b21f1a1f518321828bf456ca6e8601 /main.cc | |
parent | Adding upstream version 0.6. (diff) | |
download | zutils-b1a0f85fe3a832e8b91ef367399cd76632d633f4.tar.xz zutils-b1a0f85fe3a832e8b91ef367399cd76632d633f4.zip |
Adding upstream version 0.7.upstream/0.7
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -551,8 +551,8 @@ int print_magic_type( const std::string & magic_type ) { std::string data; - if( magic_type == "gzip" ) std::printf( "\x1F\x8B" ); - else if( magic_type == "bzip2" ) std::printf( "BZh" ); + if( magic_type == "bzip2" ) std::printf( "BZh" ); + else if( magic_type == "gzip" ) std::printf( "\x1F\x8B" ); else if( magic_type == "lzip" ) std::printf( "LZIP" ); else if( magic_type == "xz" ) std::printf( "%c7zXZ", '\xFD' ); else if( hex_to_data( magic_type, data ) ) std::printf( data.c_str() ); |