summaryrefslogtreecommitdiff
path: root/apt-inst
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-12-17 23:19:37 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-12-17 23:19:37 +0100
commit6f388ec39823d67a233e8ad7949077b9c9f36707 (patch)
tree98eed2364a961a4781cc78cdb02fb2803fe1aa58 /apt-inst
parenta0e96b87e1f9e2b924dd473b7a29272f88c461bb (diff)
* apt-inst/contrib/arfile.cc:
- support members ending with '/' as well (thanks to Michal Cihr, closes: #500988)
Diffstat (limited to 'apt-inst')
-rw-r--r--apt-inst/contrib/arfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-inst/contrib/arfile.cc b/apt-inst/contrib/arfile.cc
index a1fb97b48..7c85f2e86 100644
--- a/apt-inst/contrib/arfile.cc
+++ b/apt-inst/contrib/arfile.cc
@@ -111,7 +111,7 @@ bool ARArchive::LoadHeaders()
else
{
unsigned int I = sizeof(Head.Name) - 1;
- for (; Head.Name[I] == ' '; I--);
+ for (; Head.Name[I] == ' ' || Head.Name[I] == '/'; I--);
Memb->Name = string(Head.Name,I+1);
}