diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-29 15:45:06 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-29 15:45:06 +0200 |
commit | 194fac6be95e698d8eec86ddf19ebc1e7ca6d5c7 (patch) | |
tree | ee446fd8a9ae1a184395ed339c71331437f51717 /apt-pkg/contrib/sha1.cc | |
parent | 64dda04bd949ab73ca77732fcc5149cc7c2a5557 (diff) | |
parent | fc15861a405a0b0483bb8989e6a43215a86dba55 (diff) |
merged from debian-sid
Diffstat (limited to 'apt-pkg/contrib/sha1.cc')
-rw-r--r-- | apt-pkg/contrib/sha1.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/contrib/sha1.cc b/apt-pkg/contrib/sha1.cc index eae52d52f..abc2aaf9f 100644 --- a/apt-pkg/contrib/sha1.cc +++ b/apt-pkg/contrib/sha1.cc @@ -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 */ |