Browse Source

* apt-pkg/deb/debsrcrecords.cc:
- fix off-by-one problem

Michael Vogt 19 years ago
parent
commit
d295f24c56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apt-pkg/deb/debsrcrecords.cc

+ 1 - 1
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)