Browse Source

r8985@totoro: nickm | 2006-10-10 19:39:57 -0400
Fix a signed/unsigned compare in eventdns.c


svn:r8685

Nick Mathewson 18 years ago
parent
commit
97e17d817b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/eventdns.c

+ 1 - 1
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);                   \