summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-08-19 00:10:25 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-08-19 00:10:25 +0200
commit754b55091a75ddf3be5bf39df0c5021ff3e567e0 (patch)
tree3cad60f1e387595b6056e5a9011e576781bfdc0a
parent4368851d55589a55fc10ff347890d8bbf33ee002 (diff)
* ftparchive/writer.cc:
- init valid-until correctly to prevent garbage entering Release file
-rw-r--r--debian/changelog4
-rw-r--r--ftparchive/writer.cc2
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)