r8985@totoro: nickm | 2006-10-10 19:39:57 -0400

Fix a signed/unsigned compare in eventdns.c


svn:r8685
This commit is contained in:
Nick Mathewson
2006-10-10 23:46:33 +00:00
parent 552d828def
commit 97e17d817b
+1 -1
View File
@@ -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); \