diff options
Diffstat (limited to 'methods')
-rw-r--r-- | methods/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |