]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
fix crash when P.Arch() was used but the cache got remapped
[apt.git] / apt-pkg / contrib / sha1.cc
index 4b0552102e0eb1c72962debb961c33170fb896b4..5b9db202d0b2d161f36d00350e1424a6fc6db0ac 100644 (file)
@@ -74,10 +74,9 @@ static void SHA1Transform(uint32_t state[5],uint8_t const buffer[64])
       uint32_t l[16];
    }
    CHAR64LONG16;
-   CHAR64LONG16 *block;
+   CHAR64LONG16 workspace, *block;
 
-   uint8_t workspace[64];
-   block = (CHAR64LONG16 *)workspace;
+   block = &workspace;
    memcpy(block,buffer,sizeof(workspace));
 
    /* Copy context->state[] to working vars */