Add extra (size_t) cast to avoid compiler warning. am: 3b126928a1
am: b2d1df316a
Change-Id: I854fe0a04c16483f2540bc2b180fd6b0a7578e88
diff --git a/src/rfc1035.c b/src/rfc1035.c
index 265e4df..e440e8a 100755
--- a/src/rfc1035.c
+++ b/src/rfc1035.c
@@ -1144,7 +1144,7 @@
struct mx_srv_record *rec;
// Make sure we do not underflow here too.
- if (qlen > (limit - ((char *)header))) return 0;
+ if (qlen > (size_t)(limit - ((char *)header))) return 0;
/* If there is an RFC2671 pseudoheader then it will be overwritten by
partial replies, so we have to do a dry run to see if we can answer