diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-26 11:57:16 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-26 11:57:16 +0200 |
commit | 38c19831778f9bedb8538a65ac5bafed29e1941c (patch) | |
tree | 98524fb434250f5196d9febae4e3650c3d0eb318 /apt-pkg/contrib | |
parent | cd84a799ecbb958af42e554629250a404889c651 (diff) | |
parent | 1edc38abff0bffd56ad7a128f6243050d4064827 (diff) |
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg/contrib')
-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 */ |