From 4e69e1d0724772c66286479b43624abfc323f48d 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 (cherry picked from commit 70676a01eb16a8221fd5adec6aefaf36590edada) --- 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 4aa5eb009d..19939ed74c 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -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;