diff options
author | Roger Dingledine <arma@torproject.org> | 2007-11-29 15:25:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-11-29 15:25:04 +0000 |
commit | aaf35cccf7ac60c17dac687127ec82c612232836 (patch) | |
tree | c382f9c21bb2812178fe1eb85147432c65e73b0c /src/or/test.c | |
parent | 0f22c584cdc797e20f4aef74e5312ebda76d05fa (diff) | |
download | tor-aaf35cccf7ac60c17dac687127ec82c612232836.tar.gz tor-aaf35cccf7ac60c17dac687127ec82c612232836.zip |
karsten's second refactoring patch
svn:r12607
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 448720ae53..f556e4101b 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3275,7 +3275,7 @@ test_rend_fns_v2(void) { rend_service_descriptor_t *generated, *parsed; char service_id[DIGEST_LEN]; - char service_id_base32[REND_SERVICE_ID_LEN+1]; + char service_id_base32[REND_SERVICE_ID_LEN_BASE32+1]; const char *next_desc; smartlist_t *desc_strs = smartlist_create(); smartlist_t *desc_ids = smartlist_create(); @@ -3292,7 +3292,8 @@ test_rend_fns_v2(void) generated = tor_malloc_zero(sizeof(rend_service_descriptor_t)); generated->pk = crypto_pk_dup_key(pk1); crypto_pk_get_digest(generated->pk, service_id); - base32_encode(service_id_base32, REND_SERVICE_ID_LEN+1, service_id, 10); + base32_encode(service_id_base32, REND_SERVICE_ID_LEN_BASE32+1, + service_id, REND_SERVICE_ID_LEN); now = time(NULL); generated->timestamp = now; generated->n_intro_points = 3; |