- fix buffersize in bytes2hex
apt (0.8.16~exp5) experimental; urgency=low
+ [ Michael Vogt ]
* apt-pkg/makefile:
- install sha256.h compat header
* apt-pkg/pkgcachegen.{cc,h}:
- fix fetching language information by adding OptionalSubIndexTarget
* methods/https.cc:
- cleanup broken downloads properly
+
+ [ Colin Watson ]
+ * ftparchive/cachedb.cc:
+ - fix buffersize in bytes2hex
-- Michael Vogt <mvo@debian.org> Fri, 05 Aug 2011 10:57:08 +0200
/*}}}*/
static string bytes2hex(uint8_t *bytes, size_t length) {
- char space[65];
+ char space[129];
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]);