From 70676a01eb16a8221fd5adec6aefaf36590edada Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Tue, 4 Jul 2017 12:12:11 +0100 Subject: [PATCH] fixed new warning with previous iOS patch --- bin/dig/dighost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 348109a299..06186fb0d8 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;