summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha1.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-07-26 12:25:17 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-07-26 12:25:17 +0200
commit1a51e3db1af215ffd65ab2347baead7b1179ad80 (patch)
treea90d0a88304f7654ea494ba0fe6aa4307ef5d691 /apt-pkg/contrib/sha1.cc
parent822b344dacd3154df859ce6dbb1cb713ed96fc44 (diff)
parent27b16a2ed9a5cfdde955a0a49cd2fd73edce09c8 (diff)
merged from debian-sid
Diffstat (limited to 'apt-pkg/contrib/sha1.cc')
-rw-r--r--apt-pkg/contrib/sha1.cc5
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 */