From: Ray Bellis Date: Tue, 4 Jul 2017 11:12:11 +0000 (+0100) Subject: fixed new warning with previous iOS patch X-Git-Tag: v9.12.0a1~220 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=70676a01eb16a8221fd5adec6aefaf36590edada;p=thirdparty%2Fbind9.git fixed new warning with previous iOS patch --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 348109a299e..06186fb0d82 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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;