Explorar o código

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


svn:r8685

Nick Mathewson %!s(int64=18) %!d(string=hai) anos
pai
achega
97e17d817b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);                   \