diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 10:09:34 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 10:09:34 +0000 |
commit | 72164cf0d95398b5f82d96b9be1f931e06f8627c (patch) | |
tree | 928bd21186c7108845bca89226f712e5f089f9d1 /decoder.cc | |
parent | Adding upstream version 1.17. (diff) | |
download | lzip-72164cf0d95398b5f82d96b9be1f931e06f8627c.tar.xz lzip-72164cf0d95398b5f82d96b9be1f931e06f8627c.zip |
Adding upstream version 1.18~pre1.upstream/1.18_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.cc')
-rw-r--r-- | decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ void Pretty_print::operator()( const char * const msg ) const { first_post = false; std::fprintf( stderr, " %s: ", name_.c_str() ); - for( unsigned i = 0; i < longest_name - name_.size(); ++i ) + for( unsigned i = name_.size(); i < longest_name; ++i ) std::fputc( ' ', stderr ); if( !msg ) std::fflush( stderr ); } @@ -110,7 +110,7 @@ void LZ_decoder::flush_data() crc32.update_buf( crc_, buffer + stream_pos, size ); if( outfd >= 0 && writeblock( outfd, buffer + stream_pos, size ) != size ) throw Error( "Write error" ); - if( pos >= buffer_size ) { partial_data_pos += pos; pos = 0; } + if( pos >= dictionary_size ) { partial_data_pos += pos; pos = 0; } stream_pos = pos; } } |