From ddee0a5d1f6883fb82ede2e816b6658a8f17a10b Mon Sep 17 00:00:00 2001 From: "bubulle@debian.org" <> Date: Wed, 14 Sep 2011 20:13:21 +0200 Subject: Fix spelling error --- po/fr.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/fr.po b/po/fr.po index 1e0f872c2..d70cf8da0 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1080,7 +1080,7 @@ msgstr "La commande de mise à jour ne prend pas d'argument" #: cmdline/apt-get.cc:1653 msgid "We are not supposed to delete stuff, can't start AutoRemover" msgstr "" -"Aucune suppression n'est sensée se produire : impossible de lancer " +"Aucune suppression n'est censée se produire : impossible de lancer " "« Autoremover »" #: cmdline/apt-get.cc:1748 -- cgit v1.2.3 From 5dd9b3a6e43ddd17d8b107d33f25fa3dd3f7bbba Mon Sep 17 00:00:00 2001 From: "bubulle@debian.org" <> Date: Wed, 14 Sep 2011 20:14:43 +0200 Subject: Changelog entry forspelling fix --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5e4598e3f..e7a641963 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.8.15.9) UNRELEASED; urgency=low + + * Fix spelling error (sensée) in French translation. Thanks + to Corentin Le Gall for spotting it. + + -- Christian Perrier Wed, 14 Sep 2011 20:13:40 +0200 + apt (0.8.15.8) unstable; urgency=low [ David Kalnischkies ] -- cgit v1.2.3 From 324fc8af296953857ebfc76deaadd4d224e081e3 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Sat, 24 Sep 2011 10:49:49 +0200 Subject: * ftparchive/cachedb.cc: - fix buffersize in bytes2hex * ftparchive/cachedb.cc: - make buffer fully dynamic (thanks to Colin Watson) --- debian/changelog | 8 ++++++++ ftparchive/cachedb.cc | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4aedf9232..255248d63 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,14 @@ apt (0.8.15.9) UNRELEASED; urgency=low [ David Kalnischkies ] * Symbol file update + [ Colin Watson ] + * ftparchive/cachedb.cc: + - fix buffersize in bytes2hex + + [ Michael Vogt ] + * ftparchive/cachedb.cc: + - make buffer fully dynamic (thanks to Colin Watson) + -- Christian Perrier Wed, 14 Sep 2011 20:13:40 +0200 apt (0.8.15.8) unstable; urgency=low diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index b04244347..6573fa264 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -294,11 +294,15 @@ bool CacheDB::LoadContents(bool const &GenOnly) /*}}}*/ static string bytes2hex(uint8_t *bytes, size_t length) { - char space[65]; - if (length * 2 > sizeof(space) - 1) length = (sizeof(space) - 1) / 2; - for (size_t i = 0; i < length; i++) - snprintf(&space[i*2], 3, "%02x", bytes[i]); - return string(space); + char buf[3]; + string space; + + space.reserve(length*2 + 1); + for (size_t i = 0; i < length; i++) { + snprintf(buf, sizeof(buf), "%02x", bytes[i]); + space.append(buf); + } + return space; } static inline unsigned char xdig2num(char const &dig) { -- cgit v1.2.3