瀏覽代碼

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
    // Transfer over the result
    SHA1SumValue Value;
    SHA1SumValue Value;
-   char res[20];
+   unsigned char res[20];
    for (unsigned i = 0; i < 20; i++)
    for (unsigned i = 0; i < 20; i++)
    {
    {
       res[i] = (unsigned char)
       res[i] = (unsigned char)