summaryrefslogtreecommitdiff
path: root/apt-inst/contrib
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@1501-debian>2008-11-07 23:59:28 +0200
committerEugene V. Lyubimkin <jackyf@1501-debian>2008-11-07 23:59:28 +0200
commit8669a82ef889bdb947d62ab3ff11f27d70a9d2d6 (patch)
tree45401aef2b4e7e9bd0930640727af2c82f575c50 /apt-inst/contrib
parent425684e05521bba07b03dc2c5e647908ce757141 (diff)
parentf03edb29dfcc1ece0dd4161705830274bf0f7739 (diff)
Merged from debian-sid.
Diffstat (limited to 'apt-inst/contrib')
-rw-r--r--apt-inst/contrib/extracttar.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc
index 68c871a5d..8338fd89d 100644
--- a/apt-inst/contrib/extracttar.cc
+++ b/apt-inst/contrib/extracttar.cc
@@ -208,14 +208,14 @@ bool ExtractTar::Go(pkgDirStream &Stream)
Itm.Name = (char *)LastLongName.c_str();
else
{
- Tar->Name[sizeof(Tar->Name)] = 0;
+ Tar->Name[sizeof(Tar->Name)-1] = 0;
Itm.Name = Tar->Name;
}
if (Itm.Name[0] == '.' && Itm.Name[1] == '/' && Itm.Name[2] != 0)
Itm.Name += 2;
// Grab the link target
- Tar->Name[sizeof(Tar->LinkName)] = 0;
+ Tar->Name[sizeof(Tar->LinkName)-1] = 0;
Itm.LinkTarget = Tar->LinkName;
if (LastLongLink.empty() == false)