diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2017-08-16 15:14:02 +0900 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2017-10-02 17:20:10 -0500 |
commit | 41e4b42dbec939c12457cd4ab59112e95a0326a3 (patch) | |
tree | 2e29b5f8c53c80bbf310cf3b99166ef49a9fcc3d | |
parent | 0b7daf3ad113879a92de1f1801f14ecdb7deaa90 (diff) | |
download | android_external_dnsmasq-cm-14.1.tar.gz android_external_dnsmasq-cm-14.1.tar.bz2 android_external_dnsmasq-cm-14.1.zip |
Add extra (size_t) cast to avoid compiler warning.cm-14.1
Bug: 64575136
Test: builds
Change-Id: I2ca72d89882e9d41803dd80055cbae2f74e73412
Merged-In: Ia33235230b73cb1a828a65dc3a8d1d396fc37d26
(cherry picked from commit 1387a89b143a37b3ab524feaf2af8c2c8d025c3f)
-rwxr-xr-x | src/rfc1035.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ size_t answer_request(HEADER *header, char *limit, size_t qlen, 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 |