summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-07-05 15:58:32 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-07-05 15:58:32 +0200
commit73da43e90be945d3be9b4f3b6e5016fb7bacb59d (patch)
tree6c17f4f3fa730d44c0602440d2c9b61ae498d9b8 /apt-pkg/acquire-worker.cc
parentef25649c3d6a535706d1039aba128e1b22341f91 (diff)
* apt-pkg/acquire*.{cc,h}:
- try even harder to support really big files in the fetcher by converting (hopefully) everything to 'long long' (Closes: #632271)
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc
index 75e03232a..3e1fd98db 100644
--- a/apt-pkg/acquire-worker.cc
+++ b/apt-pkg/acquire-worker.cc
@@ -287,9 +287,9 @@ bool pkgAcquire::Worker::RunMessages()
Log->Pulse(Owner->GetOwner());
OwnerQ->ItemDone(Itm);
- unsigned long const ServerSize = atol(LookupTag(Message,"Size","0").c_str());
+ unsigned long long const ServerSize = atoll(LookupTag(Message,"Size","0").c_str());
if (TotalSize != 0 && ServerSize != TotalSize)
- _error->Warning("Size of file %s is not what the server reported %s %lu",
+ _error->Warning("Size of file %s is not what the server reported %s %llu",
Owner->DestFile.c_str(), LookupTag(Message,"Size","0").c_str(),TotalSize);
// see if there is a hash to verify