From e4171a78dbaf735451a1c254c6c288997180022a Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 17 Nov 1998 17:44:50 +0000 Subject: [PATCH] Back out probable fix to strange alignment code --- libraries/liblutil/sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblutil/sha1.c b/libraries/liblutil/sha1.c index d254b3fcda..5095bd77e3 100644 --- a/libraries/liblutil/sha1.c +++ b/libraries/liblutil/sha1.c @@ -68,8 +68,8 @@ ldap_SHA1Transform( uint32 *state, const unsigned char *buffer ) CHAR64LONG16 *block; #ifdef SHA1HANDSOFF - CHAR64LONG16 workspace; - block = &workspace; + static unsigned char workspace[64]; + block = (CHAR64LONG16 *)workspace; (void)memcpy(block, buffer, 64); #else block = (CHAR64LONG16 *)buffer; -- 2.39.5