changeset 6417:764fd03c3ff9

* arctwo.h (arctwo_setkey): Protect variable in CPP macro, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
author Simon Josefsson <simon@josefsson.org>
date Fri, 21 Oct 2005 14:31:07 +0000
parents 3249ff532a18
children e0a8b9b05999
files lib/ChangeLog lib/arctwo.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-21  Simon Josefsson  <jas@extundo.com>
+
+	* arctwo.h (arctwo_setkey): Protect variable in CPP macro,
+	suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
 2005-10-21  Simon Josefsson  <jas@extundo.com>
 
 	* rijndael-api-fst.c: Fix bugs in CBC mode for more than one
--- a/lib/arctwo.h
+++ b/lib/arctwo.h
@@ -42,7 +42,7 @@
 		   size_t keylen, const char *key, size_t effective_keylen);
 
 #define arctwo_setkey(context,keylen,key) \
-  arctwo_setkey_ekb (context, keylen, key, 8 * keylen)
+  arctwo_setkey_ekb (context, keylen, key, 8 * (keylen))
 
 /* Encrypt INBUF of size LENGTH into OUTBUF.  LENGTH must be a
    multiple of ARCTWO_BLOCK_SIZE.  CONTEXT hold the encryption key,