X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/2569ac285813e0ca36d76c03cce92cf490c63e6d..73e0ee1e7f97571d7be3277e3c25c2f41b2bb946:/apt-pkg/depcache.cc diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 859e64ea1..8584419e1 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -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"); } } @@ -1461,3 +1461,4 @@ bool pkgDepCache::Sweep() return true; } +