diff options
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | ftparchive/writer.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 91300e10c..ecd1b24d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,10 @@ apt (0.8.0~pre2) UNRELEASED; urgency=low - create backups for our extended_states file (Closes: #593430) * apt-pkg/init.cc: - set the default values for dir::etc::trusted options correctly + * ftparchive/writer.cc: + - init valid-until correctly to prevent garbage entering Release file - -- David Kalnischkies <kalnischkies@gmail.com> Thu, 19 Aug 2010 00:01:30 +0200 + -- David Kalnischkies <kalnischkies@gmail.com> Thu, 19 Aug 2010 00:09:00 +0200 apt (0.8.0~pre1) experimental; urgency=low diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 650eec57c..58e32dade 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -925,7 +925,7 @@ ReleaseWriter::ReleaseWriter(string const &DB) } time_t const validuntil = now + _config->FindI("APT::FTPArchive::Release::ValidTime", 0); - char validstr[128]; + char validstr[128] = ""; if (now == validuntil || strftime(validstr, sizeof(validstr), "%a, %d %b %Y %H:%M:%S UTC", gmtime(&validuntil)) == 0) |