diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:27:51 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:27:51 +0000 |
commit | f1d6b9c378c27bc0c1f596499e1760af4a944087 (patch) | |
tree | 10a4be90a2bc52477672f339c649ae74d124accb /zcmp.cc | |
parent | Adding upstream version 1.1~rc2. (diff) | |
download | zutils-f1d6b9c378c27bc0c1f596499e1760af4a944087.tar.xz zutils-f1d6b9c378c27bc0c1f596499e1760af4a944087.zip |
Adding upstream version 1.1.upstream/1.1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'zcmp.cc')
-rw-r--r-- | zcmp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ int cmp( const long long max_size, const int infd[2], unsigned long long byte_number = 1; unsigned long long line_number = 1; // remaining number of bytes to compare - long long rest = ( ( max_size >= 0 ) ? max_size : buffer_size ); + long long rest = ( max_size >= 0 ) ? max_size : buffer_size; // buffers with space for sentinels at the end uint8_t * const buffer0 = new uint8_t[2*(buffer_size+1)]; uint8_t * const buffer1 = buffer0 + buffer_size + 1; |