summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/hashes.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-27 14:09:48 +0200
committerMichael Vogt <mvo@debian.org>2014-05-27 14:09:48 +0200
commit9518b448743e9030d854fcbb104516dd5ba648f6 (patch)
tree4e4b234c82b24d6b7ab00bc31c1e974b3ac12320 /apt-pkg/contrib/hashes.cc
parent98c934f2723d63d00908803ad47ab1359081ec2d (diff)
parentbc1c9081e826c2c7f265f23d388ba868d5011f6a (diff)
Merge remote-tracking branch 'upstream/debian/sid' into debian/sid
Diffstat (limited to 'apt-pkg/contrib/hashes.cc')
-rw-r--r--apt-pkg/contrib/hashes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/hashes.cc b/apt-pkg/contrib/hashes.cc
index 1fce0d75f..15f83615d 100644
--- a/apt-pkg/contrib/hashes.cc
+++ b/apt-pkg/contrib/hashes.cc
@@ -133,7 +133,7 @@ bool Hashes::AddFD(int const Fd,unsigned long long Size, bool const addMD5,
bool const addSHA1, bool const addSHA256, bool const addSHA512)
{
unsigned char Buf[64*64];
- bool const ToEOF = (Size == 0);
+ bool const ToEOF = (Size == UntilEOF);
while (Size != 0 || ToEOF)
{
unsigned long long n = sizeof(Buf);