Added missing zeroes in the sha1 to text generation.

This commit is contained in:
John Wiegley 2009-01-20 20:13:05 -04:00
parent 3bf354946f
commit 2858a9999a

View file

@ -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();
}
}