]> 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:13:16 +0000 (12:13 +0100)
(cherry picked from commit 70676a01eb16a8221fd5adec6aefaf36590edada)

bin/dig/dighost.c

index 4aa5eb009dc0b575e2ac57446afa8ca393ed65f2..19939ed74c091f52ff42d8c2c14486e89a7a633a 100644 (file)
@@ -459,7 +459,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;