commit 28c96c61eca146095bfa03ab0ede44d54009a805
parent dfee179d9b6418bd06e1effb6a89baa6335b45ee
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 12 Nov 2009 16:01:33 +0000
cleaner
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/printable/bloomfilter.h b/src/plugins/printable/bloomfilter.h
@@ -283,7 +283,7 @@ static void sha1_finish(struct sha1_context *ctx,
padn = ( last < 56 ) ? ( 56 - last ) : ( 120 - last );
sha1_update( ctx, sha1_padding, padn );
- sha1_update( ctx, msglen, 8 );
+ sha1_update( ctx, msglen, sizeof (msglen) );
PUT_UINT32( ctx->state[0], digest, 0 );
PUT_UINT32( ctx->state[1], digest, 4 );