Browse Source

naked constants are ugly

Roger Dingledine 13 years ago
parent
commit
1ba1bdee4b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/router.c

+ 2 - 2
src/or/router.c

@@ -490,8 +490,8 @@ init_keys(void)
   char fingerprint_line[MAX_NICKNAME_LEN+FINGERPRINT_LEN+3];
   const char *mydesc;
   crypto_pk_env_t *prkey;
-  char digest[20];
-  char v3_digest[20];
+  char digest[DIGEST_LEN];
+  char v3_digest[DIGEST_LEN];
   char *cp;
   or_options_t *options = get_options();
   authority_type_t type;