From 2858a9999ab7c9bf2bd55155572da3a909b906ea Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 20 Jan 2009 20:13:05 -0400 Subject: Added missing zeroes in the sha1 to text generation. --- src/filters.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/filters.cc') 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(); } } -- cgit v1.2.3