From 6874c3990426ca4efd4e88796854f2bab60df54d Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@torproject.org>
Date: Wed, 27 Oct 2004 18:14:38 +0000
Subject: Fix windows build

svn:r2613
---
 src/or/dns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/or/dns.c')

diff --git a/src/or/dns.c b/src/or/dns.c
index 728845f26..913cb3889 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" */
-      strlcpy(buf+2, "error resolving hostname", buf-2);
+      strlcpy(buf+2, "error resolving hostname", sizeof(buf)-2);
       buflen = 26;
       break;
     default:
-- 
cgit v1.2.3