diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-01 13:06:07 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-01 13:06:07 +0100 |
commit | d295f24c56451438dd77a8e0b7abd7ed4c85d7a4 (patch) | |
tree | 904955749ca63c20a93a2e84b268a041927bf9d1 /apt-pkg/deb/debsrcrecords.cc | |
parent | 4ab24e53db1d39cd26072f03795efd0f6425a369 (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.cc | 2 |
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) |