diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-05 14:06:12 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-05 14:06:12 +0200 |
commit | a7cc05842482e721ba66fb09f0b0858678138832 (patch) | |
tree | 680106a4ab367c508837296c4f0017cbf46aefe9 | |
parent | 31693a8ff0fe593879ed30a4dde8f9be5b0859bf (diff) |
apt-pkg/contrib/sha1.cc: fix sha1 hashsum by using the right type for "res" avoiding a implicit cast to string this way
-rw-r--r-- | apt-pkg/contrib/sha1.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/sha1.cc b/apt-pkg/contrib/sha1.cc index 0b1c16dc3..9a6725ef3 100644 --- a/apt-pkg/contrib/sha1.cc +++ b/apt-pkg/contrib/sha1.cc @@ -229,7 +229,7 @@ SHA1SumValue SHA1Summation::Result() // Transfer over the result SHA1SumValue Value; - char res[20]; + unsigned char res[20]; for (unsigned i = 0; i < 20; i++) { res[i] = (unsigned char) |