]> 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:12:11 +0000 (12:12 +0100)
bin/dig/dighost.c

index 348109a299e4f9970d9bc3e8718433142e54be2f..06186fb0d8277a593c0faf64db24ed94826c3d8e 100644 (file)
@@ -446,7 +446,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;