summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 3ed03a2d8f..d2bb017631 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -330,7 +330,7 @@ static int assign_to_dnsworker(connection_t *exitconn) {
num_dnsworkers_busy++;
len = strlen(dnsconn->address);
- connection_write_to_buf(&len, 1, dnsconn);
+ connection_write_to_buf((char*)&len, 1, dnsconn);
connection_write_to_buf(dnsconn->address, len, dnsconn);
return 0;