commit | eddc355d18923b2fa3473c91dac727c6404c440a | [log] [tgz] |
---|---|---|
author | DRC <dcommander@users.sourceforge.net> | Thu Aug 21 03:38:14 2014 +0000 |
committer | DRC <dcommander@users.sourceforge.net> | Thu Aug 21 03:38:14 2014 +0000 |
tree | 84bd5c5da72551a8cd90512f1752351ae4698184 | |
parent | 29823fa9a6171144ebc10ea14fb0c44f5624ee5e [diff] |
Actually, we need to increase the size of BUFSIZE, not just the size of _buffer. The previous patch might have cause problems if, for instance, state->free_in_buffer was 127 but 129 bytes were compressed. In that case, only 127 of the 129 bytes would have been written to the file. Also document the fix. git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1366 632fc199-4ca6-4c93-a231-07263d6284db