diff options
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index b097c1d24a..728845f260 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -159,7 +159,7 @@ static void send_resolved_cell(connection_t *conn, uint8_t answer_type) case RESOLVED_TYPE_ERROR_TRANSIENT: case RESOLVED_TYPE_ERROR: buf[1] = 24; /* length of "error resolving hostname" */ - strcpy(buf+2, "error resolving hostname"); + strlcpy(buf+2, "error resolving hostname", buf-2); buflen = 26; break; default: |