Просмотр исходного кода

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

Michael Vogt лет назад: 19
Родитель
Сommit
d295f24c56
1 измененных файлов с 1 добавлено и 1 удалено
  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)