]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/debsrcrecords.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 1 Dec 2006 12:06:07 +0000 (13:06 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 1 Dec 2006 12:06:07 +0000 (13:06 +0100)
  - fix off-by-one problem

apt-pkg/deb/debsrcrecords.cc

index 17645a5acc9dfb0fc03e35c0149c87a4c93dd343..e1c6427e894cf15b0cfeaf9db8cde0fcbd5768cb 100644 (file)
@@ -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)