apt-pkg/contrib/sha1.cc: fix sha1 hashsum by using the right type for "res" avoiding...
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 5 Jul 2011 12:06:12 +0000 (14:06 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 5 Jul 2011 12:06:12 +0000 (14:06 +0200)
apt-pkg/contrib/sha1.cc

index 0b1c16d..9a6725e 100644 (file)
@@ -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)