summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-09-22 17:27:55 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-09-22 17:27:55 +0200
commit2db5c8e7f1cf88d7bb570e04be0443dd8aad57a7 (patch)
tree8a953305b2af00b8789e37cc27bcdb00bef6de6e /ftparchive
parent2bde2334b3be5279d044fe552d0ff5ce38db1763 (diff)
cherry pick from lp:~mvo/apt/mvo
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/cachedb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc
index 7e4c2e9fe..080c2bbcc 100644
--- a/ftparchive/cachedb.cc
+++ b/ftparchive/cachedb.cc
@@ -297,7 +297,7 @@ bool CacheDB::LoadContents(bool const &GenOnly)
/*}}}*/
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]);