]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fixed new warning with previous iOS patch
authorRay Bellis <ray@isc.org>
Tue, 4 Jul 2017 11:12:11 +0000 (12:12 +0100)
committerRay Bellis <ray@isc.org>
Tue, 4 Jul 2017 11:14:00 +0000 (12:14 +0100)
(cherry picked from commit 70676a01eb16a8221fd5adec6aefaf36590edada)

bin/dig/dighost.c

index b3deb5a0a1d93a13dedd24138147191792fb4899..56737acef80faa1fe19098e9a2d6b88f66786d9e 100644 (file)
@@ -447,7 +447,7 @@ hex_dump(isc_buffer_t *b) {
  */
 static isc_result_t
 append(const char *text, size_t len, char **p, char *end) {
-       if (len > end - *p)
+       if (*p + len > end)
                return (ISC_R_NOSPACE);
        memmove(*p, text, len);
        *p += len;