]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
Fix an infinite loop in pkgAcquire::UriIterator::operator++() (Closes: #335615).
[apt.git] / apt-pkg / depcache.cc
index 859e64ea17dd937ac2d1d0af477b64bd6b30f88d..2411bfe89e34fc4d4d0010bf25414f8714311c26 100644 (file)
@@ -269,7 +269,7 @@ bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)
         ostr.str(string(""));
         ostr << "Package: " << pkg.Name() 
              << "\nAuto-Installed: 1\n\n";
-        fprintf(OutFile,ostr.str().c_str());
+        fprintf(OutFile,"%s",ostr.str().c_str());
         fprintf(OutFile,"\n");
       }
    }