diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2016-06-03 15:51:27 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2016-06-03 15:51:27 +0000 |
commit | 38cff5f25d4d9225f35375c3554fb35e9048733e (patch) | |
tree | 77a10b67d8f703d558df0fd5cc4dd7856ebe225b /encoder_base.cc | |
parent | Adding upstream version 1.18~pre1. (diff) | |
download | lzip-38cff5f25d4d9225f35375c3554fb35e9048733e.tar.xz lzip-38cff5f25d4d9225f35375c3554fb35e9048733e.zip |
Adding upstream version 1.18.upstream/1.18
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | encoder_base.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/encoder_base.cc b/encoder_base.cc index a8bbbd7..cfc058e 100644 --- a/encoder_base.cc +++ b/encoder_base.cc @@ -1,5 +1,5 @@ /* Lzip - LZMA lossless data compressor - Copyright (C) 2008-2015 Antonio Diaz Diaz. + Copyright (C) 2008-2016 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -153,8 +153,8 @@ void LZ_encoder_base::full_flush( const State state ) File_trailer trailer; trailer.data_crc( crc() ); trailer.data_size( data_position() ); - trailer.member_size( renc.member_position() + File_trailer::size() ); - for( int i = 0; i < File_trailer::size(); ++i ) + trailer.member_size( renc.member_position() + File_trailer::size ); + for( int i = 0; i < File_trailer::size; ++i ) renc.put_byte( trailer.data[i] ); renc.flush_data(); } |