Преглед изворни кода

apt-pkg/contrib/sha1.cc: fix sha1 hashsum by using the right type for "res" avoiding a implicit cast to string this way

Michael Vogt пре 15 година
родитељ
комит
a7cc058424
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apt-pkg/contrib/sha1.cc

+ 1 - 1
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)