]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
use nick's _ARRAYSIZE abstraction
authorRoger Dingledine <arma@torproject.org>
Wed, 28 Apr 2004 20:22:37 +0000 (20:22 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 28 Apr 2004 20:22:37 +0000 (20:22 +0000)
svn:r1741

src/common/crypto.c

index 4599e0cbb63f67a548fb73fef2385c50ea567dc7..cc88f9686a75bb90ed0aa7eba8cc02877f0d38d5 100644 (file)
@@ -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;
 };