summaryrefslogtreecommitdiff
path: root/ftparchive/cachedb.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-09-22 14:17:13 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-09-22 14:17:13 +0200
commita52d11fbc14f8fb10deb93a5898f53a633acbec1 (patch)
tree67223c4f0b2502febc681a5fccb0637c839b6aba /ftparchive/cachedb.cc
parentdb1f14695ce3e5e49e05f67f3ae2225b6706ec66 (diff)
* ftparchive/cachedb.cc:
- fix buffersize in bytes2hex
Diffstat (limited to 'ftparchive/cachedb.cc')
-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]);