summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debsrcrecords.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-12-01 13:06:07 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-12-01 13:06:07 +0100
commitd295f24c56451438dd77a8e0b7abd7ed4c85d7a4 (patch)
tree904955749ca63c20a93a2e84b268a041927bf9d1 /apt-pkg/deb/debsrcrecords.cc
parent4ab24e53db1d39cd26072f03795efd0f6425a369 (diff)
* apt-pkg/deb/debsrcrecords.cc:
- fix off-by-one problem
Diffstat (limited to 'apt-pkg/deb/debsrcrecords.cc')
-rw-r--r--apt-pkg/deb/debsrcrecords.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debsrcrecords.cc b/apt-pkg/deb/debsrcrecords.cc
index 17645a5ac..e1c6427e8 100644
--- a/apt-pkg/deb/debsrcrecords.cc
+++ b/apt-pkg/deb/debsrcrecords.cc
@@ -36,7 +36,7 @@ const char **debSrcRecordParser::Binaries()
if (Bins.empty() == true || Bins.length() >= 102400)
return 0;
- if (Bins.length() > BufSize)
+ if (Bins.length() >= BufSize)
{
delete [] Buffer;
// allocate new size based on buffer (but never smaller than 4000)