[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] use nick"s _ARRAYSIZE abstraction
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
crypto.c
Log Message:
use nick's _ARRAYSIZE abstraction
Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- crypto.c 28 Apr 2004 20:13:20 -0000 1.84
+++ crypto.c 28 Apr 2004 20:22:37 -0000 1.85
@@ -78,8 +78,7 @@
struct crypto_cipher_env_t
{
unsigned char key[CIPHER_KEY_LEN];
- unsigned char iv[CIPHER_IV_LEN+1];
- /* +1 because some compilers don't like a length of 0 */
+ unsigned char iv[_ARRAYSIZE(CIPHER_IV_LEN)];
aes_cnt_cipher_t *cipher;
};