Selaa lähdekoodia

* apt-pkg/deb/dpkgpm.cc:
- reset the line if a invalid line was read

Michael Vogt 19 vuotta sitten
vanhempi
commit
7882f8fed5
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      apt-pkg/deb/dpkgpm.cc

+ 2 - 0
apt-pkg/deb/dpkgpm.cc

@@ -636,6 +636,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
 	 {
 	 {
 	    if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
 	    if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
 	       std::clog << "ignoring line: not enough ':'" << std::endl;
 	       std::clog << "ignoring line: not enough ':'" << std::endl;
+	    // reset the line buffer
+	    line[0]=0;
 	    continue;
 	    continue;
 	 }
 	 }