]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
* apt-inst/deb/debfile.h:
[apt.git] / apt-pkg / contrib / sha1.cc
index 31c576611fcac3b52c6a5896f2296c461097efc2..b5a6a244064f21dbc2200cb8b1b51b39df929914 100644 (file)
@@ -75,10 +75,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 */