From: Roger Dingledine Date: Wed, 28 Apr 2004 20:22:37 +0000 (+0000) Subject: use nick's _ARRAYSIZE abstraction X-Git-Tag: debian-version-0.0.5+0.0.6rc3-1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d1510883ea583b12b1d66156c31f03700c79245;p=thirdparty%2Ftor.git use nick's _ARRAYSIZE abstraction svn:r1741 --- diff --git a/src/common/crypto.c b/src/common/crypto.c index 4599e0cbb6..cc88f9686a 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -78,8 +78,7 @@ struct crypto_pk_env_t 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; };