]> git.saurik.com Git - apt.git/commitdiff
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 0b1c16dc3af3ae111cc30715500fbdd006a1911b..9a6725ef394c1c8c0e8856b2c5191c086b3c77ac 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)