diff options
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index c373c366f..6ec7a640b 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -717,7 +717,7 @@ circuit_get_open_circ_or_launch(connection_t *conn, if(circ && (desired_circuit_purpose != CIRCUIT_PURPOSE_C_GENERAL)) { /* then write the service_id into circ */ - strcpy(circ->rend_query, conn->rend_query); + strlcpy(circ->rend_query, conn->rend_query, sizeof(circ->rend_query)); } } if(!circ) |