X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/30c8107e9c56d7d78dcf9136f94aeed9d631dfb3..479f6fa454cd6ee9e1bc4d9ecda856d34584092e:/methods/file.cc?ds=sidebyside diff --git a/methods/file.cc b/methods/file.cc index 4e3410078..36f3c39b9 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -98,7 +98,7 @@ bool FileMethod::Fetch(FetchItem *Itm) { if (APT::String::Endswith(File, *ext) == true) { - std::string const unfile = File.substr(0, File.length() - ext->length() - 1); + std::string const unfile = File.substr(0, File.length() - ext->length()); if (stat(unfile.c_str(),&Buf) == 0) { AltRes.Size = Buf.st_size;