Просмотр исходного кода

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
Родитель
Сommit
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)