]> git.saurik.com Git - apt.git/commitdiff
merge with current debian apt/sid
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 5 Oct 2011 21:06:26 +0000 (23:06 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 5 Oct 2011 21:06:26 +0000 (23:06 +0200)
debian/changelog
ftparchive/cachedb.cc
po/fr.po

index 7cd353718d570566bfe8323e7791b7cfdc30cbb8..11d9814c3a6217217f75c4aee4e4b5b7c0bfb227 100644 (file)
@@ -1,6 +1,7 @@
 apt (0.8.15.9) UNRELEASED; urgency=low
 
   [ David Kalnischkies ]
+  * Symbol file update
   * doc/apt-get.8.xml:
     - change wording of autoremove description as suggested
       by Robert Simmons, thanks! (Closes: #641490)
@@ -22,7 +23,19 @@ apt (0.8.15.9) UNRELEASED; urgency=low
   * apt-pkg/aptconfiguration.cc:
     - do not builtin languages only if none is forced (Closes: #643787)
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 03 Oct 2011 23:35:40 +0200
+  [ Christian Perrier ]
+  * Fix spelling error (sensée) in French translation. Thanks
+    to Corentin Le Gall for spotting it.
+
+  [ Colin Watson ]
+  * ftparchive/cachedb.cc:
+    - fix buffersize in bytes2hex
+
+  [ Michael Vogt ]
+  * ftparchive/cachedb.cc:
+    - make buffer fully dynamic (thanks to Colin Watson)
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 05 Oct 2011 23:03:16 +0200
 
 apt (0.8.15.8) unstable; urgency=low
 
index b04244347f4bd258a0d593712a91287fc52eaafc..6573fa2647cb4c8150e1efd17c9e315dd74677eb 100644 (file)
@@ -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) {
index 1e0f872c2596ef97068a24b826494410532addc3..d70cf8da0d936107592d570032d5d69acd272084 100644 (file)
--- 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