diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-22 14:17:13 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-22 14:17:13 +0200 |
commit | a52d11fbc14f8fb10deb93a5898f53a633acbec1 (patch) | |
tree | 67223c4f0b2502febc681a5fccb0637c839b6aba /ftparchive | |
parent | db1f14695ce3e5e49e05f67f3ae2225b6706ec66 (diff) |
* ftparchive/cachedb.cc:
- fix buffersize in bytes2hex
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/cachedb.cc | 2 |
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]); |