diff options
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 6ee99bc667..1db2aa55fe 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -68,7 +68,7 @@ rend_encode_service_descriptor(rend_service_descriptor_t *desc, cp += 2; for (i=0; i < desc->n_intro_points; ++i) { ipoint = (char*)desc->intro_points[i]; - strcpy(cp, ipoint); + strlcpy(cp, ipoint, *len_out-(cp-*str_out)); cp += strlen(ipoint)+1; } i = crypto_pk_private_sign_digest(key, *str_out, cp-*str_out, cp); |