aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index aa45adf9f..39640cf88 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1190,7 +1190,7 @@ evdns_request_data_build(const char *const name, const int name_len, const u16 t
int labels_len;
#define APPEND16(x) do { \
- if (j + 2 > buf_len) \
+ if (j + 2 > (off_t)buf_len) \
return (-1); \
_t = htons(x); \
memcpy(buf + j, &_t, 2); \