diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-20 20:13:05 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-20 20:13:05 -0400 |
commit | 2858a9999ab7c9bf2bd55155572da3a909b906ea (patch) | |
tree | 26b71dac6b78e3c4ad033bdfd7e73601f8498a2f /src/filters.cc | |
parent | 3bf354946f5943d44eb983dc908044c0b9b59b91 (diff) | |
download | fork-ledger-2858a9999ab7c9bf2bd55155572da3a909b906ea.tar.gz fork-ledger-2858a9999ab7c9bf2bd55155572da3a909b906ea.tar.bz2 fork-ledger-2858a9999ab7c9bf2bd55155572da3a909b906ea.zip |
Added missing zeroes in the sha1 to text generation.
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc index 7801a853..cf8e5019 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -130,9 +130,11 @@ namespace { { std::ostringstream buf; - for(int i = 0; i < 5 ; i++) + for(int i = 0; i < 5 ; i++) { + buf.width(8); + buf.fill('0'); buf << std::hex << message_digest[i]; - + } return buf.str(); } } |