From: Hallvard Furuseth Date: Tue, 17 Nov 1998 17:44:50 +0000 (+0000) Subject: Back out probable fix to strange alignment code X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1107 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4171a78dbaf735451a1c254c6c288997180022a;p=openldap Back out probable fix to strange alignment code --- 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;