From aaf35cccf7ac60c17dac687127ec82c612232836 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 29 Nov 2007 15:25:04 +0000 Subject: karsten's second refactoring patch svn:r12607 --- src/or/test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/or/test.c') 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; -- cgit v1.2.3-54-g00ecf