aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-28 20:22:37 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-28 20:22:37 +0000
commit5d1510883ea583b12b1d66156c31f03700c79245 (patch)
tree3a775f544ed5555f1367b5fe3254ca2a61f10a4f /src
parent47dc5cd1c896299fe4c0d3c4b8d7555c842c4e93 (diff)
downloadtor-5d1510883ea583b12b1d66156c31f03700c79245.tar
tor-5d1510883ea583b12b1d66156c31f03700c79245.tar.gz
use nick's _ARRAYSIZE abstraction
svn:r1741
Diffstat (limited to 'src')
-rw-r--r--src/common/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 4599e0cbb..cc88f9686 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;
};